POST CreateApp
{{baseUrl}}/apps
BODY json

{
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "tags": {},
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps" {:content-type :json
                                                 :form-params {:name ""
                                                               :description ""
                                                               :repository ""
                                                               :platform ""
                                                               :iamServiceRoleArn ""
                                                               :oauthToken ""
                                                               :accessToken ""
                                                               :environmentVariables {}
                                                               :enableBranchAutoBuild false
                                                               :enableBranchAutoDeletion false
                                                               :enableBasicAuth false
                                                               :basicAuthCredentials ""
                                                               :customRules [{:source ""
                                                                              :target ""
                                                                              :status ""
                                                                              :condition ""}]
                                                               :tags {}
                                                               :buildSpec ""
                                                               :customHeaders ""
                                                               :enableAutoBranchCreation false
                                                               :autoBranchCreationPatterns []
                                                               :autoBranchCreationConfig {:stage ""
                                                                                          :framework ""
                                                                                          :enableAutoBuild ""
                                                                                          :environmentVariables ""
                                                                                          :basicAuthCredentials ""
                                                                                          :enableBasicAuth ""
                                                                                          :enablePerformanceMode ""
                                                                                          :buildSpec ""
                                                                                          :enablePullRequestPreview ""
                                                                                          :pullRequestEnvironmentName ""}}})
require "http/client"

url = "{{baseUrl}}/apps"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 869

{
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "tags": {},
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  description: '',
  repository: '',
  platform: '',
  iamServiceRoleArn: '',
  oauthToken: '',
  accessToken: '',
  environmentVariables: {},
  enableBranchAutoBuild: false,
  enableBranchAutoDeletion: false,
  enableBasicAuth: false,
  basicAuthCredentials: '',
  customRules: [
    {
      source: '',
      target: '',
      status: '',
      condition: ''
    }
  ],
  tags: {},
  buildSpec: '',
  customHeaders: '',
  enableAutoBranchCreation: false,
  autoBranchCreationPatterns: [],
  autoBranchCreationConfig: {
    stage: '',
    framework: '',
    enableAutoBuild: '',
    environmentVariables: '',
    basicAuthCredentials: '',
    enableBasicAuth: '',
    enablePerformanceMode: '',
    buildSpec: '',
    enablePullRequestPreview: '',
    pullRequestEnvironmentName: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    description: '',
    repository: '',
    platform: '',
    iamServiceRoleArn: '',
    oauthToken: '',
    accessToken: '',
    environmentVariables: {},
    enableBranchAutoBuild: false,
    enableBranchAutoDeletion: false,
    enableBasicAuth: false,
    basicAuthCredentials: '',
    customRules: [{source: '', target: '', status: '', condition: ''}],
    tags: {},
    buildSpec: '',
    customHeaders: '',
    enableAutoBranchCreation: false,
    autoBranchCreationPatterns: [],
    autoBranchCreationConfig: {
      stage: '',
      framework: '',
      enableAutoBuild: '',
      environmentVariables: '',
      basicAuthCredentials: '',
      enableBasicAuth: '',
      enablePerformanceMode: '',
      buildSpec: '',
      enablePullRequestPreview: '',
      pullRequestEnvironmentName: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","description":"","repository":"","platform":"","iamServiceRoleArn":"","oauthToken":"","accessToken":"","environmentVariables":{},"enableBranchAutoBuild":false,"enableBranchAutoDeletion":false,"enableBasicAuth":false,"basicAuthCredentials":"","customRules":[{"source":"","target":"","status":"","condition":""}],"tags":{},"buildSpec":"","customHeaders":"","enableAutoBranchCreation":false,"autoBranchCreationPatterns":[],"autoBranchCreationConfig":{"stage":"","framework":"","enableAutoBuild":"","environmentVariables":"","basicAuthCredentials":"","enableBasicAuth":"","enablePerformanceMode":"","buildSpec":"","enablePullRequestPreview":"","pullRequestEnvironmentName":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "description": "",\n  "repository": "",\n  "platform": "",\n  "iamServiceRoleArn": "",\n  "oauthToken": "",\n  "accessToken": "",\n  "environmentVariables": {},\n  "enableBranchAutoBuild": false,\n  "enableBranchAutoDeletion": false,\n  "enableBasicAuth": false,\n  "basicAuthCredentials": "",\n  "customRules": [\n    {\n      "source": "",\n      "target": "",\n      "status": "",\n      "condition": ""\n    }\n  ],\n  "tags": {},\n  "buildSpec": "",\n  "customHeaders": "",\n  "enableAutoBranchCreation": false,\n  "autoBranchCreationPatterns": [],\n  "autoBranchCreationConfig": {\n    "stage": "",\n    "framework": "",\n    "enableAutoBuild": "",\n    "environmentVariables": "",\n    "basicAuthCredentials": "",\n    "enableBasicAuth": "",\n    "enablePerformanceMode": "",\n    "buildSpec": "",\n    "enablePullRequestPreview": "",\n    "pullRequestEnvironmentName": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  name: '',
  description: '',
  repository: '',
  platform: '',
  iamServiceRoleArn: '',
  oauthToken: '',
  accessToken: '',
  environmentVariables: {},
  enableBranchAutoBuild: false,
  enableBranchAutoDeletion: false,
  enableBasicAuth: false,
  basicAuthCredentials: '',
  customRules: [{source: '', target: '', status: '', condition: ''}],
  tags: {},
  buildSpec: '',
  customHeaders: '',
  enableAutoBranchCreation: false,
  autoBranchCreationPatterns: [],
  autoBranchCreationConfig: {
    stage: '',
    framework: '',
    enableAutoBuild: '',
    environmentVariables: '',
    basicAuthCredentials: '',
    enableBasicAuth: '',
    enablePerformanceMode: '',
    buildSpec: '',
    enablePullRequestPreview: '',
    pullRequestEnvironmentName: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps',
  headers: {'content-type': 'application/json'},
  body: {
    name: '',
    description: '',
    repository: '',
    platform: '',
    iamServiceRoleArn: '',
    oauthToken: '',
    accessToken: '',
    environmentVariables: {},
    enableBranchAutoBuild: false,
    enableBranchAutoDeletion: false,
    enableBasicAuth: false,
    basicAuthCredentials: '',
    customRules: [{source: '', target: '', status: '', condition: ''}],
    tags: {},
    buildSpec: '',
    customHeaders: '',
    enableAutoBranchCreation: false,
    autoBranchCreationPatterns: [],
    autoBranchCreationConfig: {
      stage: '',
      framework: '',
      enableAutoBuild: '',
      environmentVariables: '',
      basicAuthCredentials: '',
      enableBasicAuth: '',
      enablePerformanceMode: '',
      buildSpec: '',
      enablePullRequestPreview: '',
      pullRequestEnvironmentName: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  name: '',
  description: '',
  repository: '',
  platform: '',
  iamServiceRoleArn: '',
  oauthToken: '',
  accessToken: '',
  environmentVariables: {},
  enableBranchAutoBuild: false,
  enableBranchAutoDeletion: false,
  enableBasicAuth: false,
  basicAuthCredentials: '',
  customRules: [
    {
      source: '',
      target: '',
      status: '',
      condition: ''
    }
  ],
  tags: {},
  buildSpec: '',
  customHeaders: '',
  enableAutoBranchCreation: false,
  autoBranchCreationPatterns: [],
  autoBranchCreationConfig: {
    stage: '',
    framework: '',
    enableAutoBuild: '',
    environmentVariables: '',
    basicAuthCredentials: '',
    enableBasicAuth: '',
    enablePerformanceMode: '',
    buildSpec: '',
    enablePullRequestPreview: '',
    pullRequestEnvironmentName: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    description: '',
    repository: '',
    platform: '',
    iamServiceRoleArn: '',
    oauthToken: '',
    accessToken: '',
    environmentVariables: {},
    enableBranchAutoBuild: false,
    enableBranchAutoDeletion: false,
    enableBasicAuth: false,
    basicAuthCredentials: '',
    customRules: [{source: '', target: '', status: '', condition: ''}],
    tags: {},
    buildSpec: '',
    customHeaders: '',
    enableAutoBranchCreation: false,
    autoBranchCreationPatterns: [],
    autoBranchCreationConfig: {
      stage: '',
      framework: '',
      enableAutoBuild: '',
      environmentVariables: '',
      basicAuthCredentials: '',
      enableBasicAuth: '',
      enablePerformanceMode: '',
      buildSpec: '',
      enablePullRequestPreview: '',
      pullRequestEnvironmentName: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","description":"","repository":"","platform":"","iamServiceRoleArn":"","oauthToken":"","accessToken":"","environmentVariables":{},"enableBranchAutoBuild":false,"enableBranchAutoDeletion":false,"enableBasicAuth":false,"basicAuthCredentials":"","customRules":[{"source":"","target":"","status":"","condition":""}],"tags":{},"buildSpec":"","customHeaders":"","enableAutoBranchCreation":false,"autoBranchCreationPatterns":[],"autoBranchCreationConfig":{"stage":"","framework":"","enableAutoBuild":"","environmentVariables":"","basicAuthCredentials":"","enableBasicAuth":"","enablePerformanceMode":"","buildSpec":"","enablePullRequestPreview":"","pullRequestEnvironmentName":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
                              @"description": @"",
                              @"repository": @"",
                              @"platform": @"",
                              @"iamServiceRoleArn": @"",
                              @"oauthToken": @"",
                              @"accessToken": @"",
                              @"environmentVariables": @{  },
                              @"enableBranchAutoBuild": @NO,
                              @"enableBranchAutoDeletion": @NO,
                              @"enableBasicAuth": @NO,
                              @"basicAuthCredentials": @"",
                              @"customRules": @[ @{ @"source": @"", @"target": @"", @"status": @"", @"condition": @"" } ],
                              @"tags": @{  },
                              @"buildSpec": @"",
                              @"customHeaders": @"",
                              @"enableAutoBranchCreation": @NO,
                              @"autoBranchCreationPatterns": @[  ],
                              @"autoBranchCreationConfig": @{ @"stage": @"", @"framework": @"", @"enableAutoBuild": @"", @"environmentVariables": @"", @"basicAuthCredentials": @"", @"enableBasicAuth": @"", @"enablePerformanceMode": @"", @"buildSpec": @"", @"enablePullRequestPreview": @"", @"pullRequestEnvironmentName": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '',
    'description' => '',
    'repository' => '',
    'platform' => '',
    'iamServiceRoleArn' => '',
    'oauthToken' => '',
    'accessToken' => '',
    'environmentVariables' => [
        
    ],
    'enableBranchAutoBuild' => null,
    'enableBranchAutoDeletion' => null,
    'enableBasicAuth' => null,
    'basicAuthCredentials' => '',
    'customRules' => [
        [
                'source' => '',
                'target' => '',
                'status' => '',
                'condition' => ''
        ]
    ],
    'tags' => [
        
    ],
    'buildSpec' => '',
    'customHeaders' => '',
    'enableAutoBranchCreation' => null,
    'autoBranchCreationPatterns' => [
        
    ],
    'autoBranchCreationConfig' => [
        'stage' => '',
        'framework' => '',
        'enableAutoBuild' => '',
        'environmentVariables' => '',
        'basicAuthCredentials' => '',
        'enableBasicAuth' => '',
        'enablePerformanceMode' => '',
        'buildSpec' => '',
        'enablePullRequestPreview' => '',
        'pullRequestEnvironmentName' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps', [
  'body' => '{
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "tags": {},
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'description' => '',
  'repository' => '',
  'platform' => '',
  'iamServiceRoleArn' => '',
  'oauthToken' => '',
  'accessToken' => '',
  'environmentVariables' => [
    
  ],
  'enableBranchAutoBuild' => null,
  'enableBranchAutoDeletion' => null,
  'enableBasicAuth' => null,
  'basicAuthCredentials' => '',
  'customRules' => [
    [
        'source' => '',
        'target' => '',
        'status' => '',
        'condition' => ''
    ]
  ],
  'tags' => [
    
  ],
  'buildSpec' => '',
  'customHeaders' => '',
  'enableAutoBranchCreation' => null,
  'autoBranchCreationPatterns' => [
    
  ],
  'autoBranchCreationConfig' => [
    'stage' => '',
    'framework' => '',
    'enableAutoBuild' => '',
    'environmentVariables' => '',
    'basicAuthCredentials' => '',
    'enableBasicAuth' => '',
    'enablePerformanceMode' => '',
    'buildSpec' => '',
    'enablePullRequestPreview' => '',
    'pullRequestEnvironmentName' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'description' => '',
  'repository' => '',
  'platform' => '',
  'iamServiceRoleArn' => '',
  'oauthToken' => '',
  'accessToken' => '',
  'environmentVariables' => [
    
  ],
  'enableBranchAutoBuild' => null,
  'enableBranchAutoDeletion' => null,
  'enableBasicAuth' => null,
  'basicAuthCredentials' => '',
  'customRules' => [
    [
        'source' => '',
        'target' => '',
        'status' => '',
        'condition' => ''
    ]
  ],
  'tags' => [
    
  ],
  'buildSpec' => '',
  'customHeaders' => '',
  'enableAutoBranchCreation' => null,
  'autoBranchCreationPatterns' => [
    
  ],
  'autoBranchCreationConfig' => [
    'stage' => '',
    'framework' => '',
    'enableAutoBuild' => '',
    'environmentVariables' => '',
    'basicAuthCredentials' => '',
    'enableBasicAuth' => '',
    'enablePerformanceMode' => '',
    'buildSpec' => '',
    'enablePullRequestPreview' => '',
    'pullRequestEnvironmentName' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apps');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "tags": {},
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "tags": {},
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps"

payload = {
    "name": "",
    "description": "",
    "repository": "",
    "platform": "",
    "iamServiceRoleArn": "",
    "oauthToken": "",
    "accessToken": "",
    "environmentVariables": {},
    "enableBranchAutoBuild": False,
    "enableBranchAutoDeletion": False,
    "enableBasicAuth": False,
    "basicAuthCredentials": "",
    "customRules": [
        {
            "source": "",
            "target": "",
            "status": "",
            "condition": ""
        }
    ],
    "tags": {},
    "buildSpec": "",
    "customHeaders": "",
    "enableAutoBranchCreation": False,
    "autoBranchCreationPatterns": [],
    "autoBranchCreationConfig": {
        "stage": "",
        "framework": "",
        "enableAutoBuild": "",
        "environmentVariables": "",
        "basicAuthCredentials": "",
        "enableBasicAuth": "",
        "enablePerformanceMode": "",
        "buildSpec": "",
        "enablePullRequestPreview": "",
        "pullRequestEnvironmentName": ""
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps"

payload <- "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"repository\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps";

    let payload = json!({
        "name": "",
        "description": "",
        "repository": "",
        "platform": "",
        "iamServiceRoleArn": "",
        "oauthToken": "",
        "accessToken": "",
        "environmentVariables": json!({}),
        "enableBranchAutoBuild": false,
        "enableBranchAutoDeletion": false,
        "enableBasicAuth": false,
        "basicAuthCredentials": "",
        "customRules": (
            json!({
                "source": "",
                "target": "",
                "status": "",
                "condition": ""
            })
        ),
        "tags": json!({}),
        "buildSpec": "",
        "customHeaders": "",
        "enableAutoBranchCreation": false,
        "autoBranchCreationPatterns": (),
        "autoBranchCreationConfig": json!({
            "stage": "",
            "framework": "",
            "enableAutoBuild": "",
            "environmentVariables": "",
            "basicAuthCredentials": "",
            "enableBasicAuth": "",
            "enablePerformanceMode": "",
            "buildSpec": "",
            "enablePullRequestPreview": "",
            "pullRequestEnvironmentName": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "tags": {},
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  }
}'
echo '{
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "tags": {},
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  }
}' |  \
  http POST {{baseUrl}}/apps \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "description": "",\n  "repository": "",\n  "platform": "",\n  "iamServiceRoleArn": "",\n  "oauthToken": "",\n  "accessToken": "",\n  "environmentVariables": {},\n  "enableBranchAutoBuild": false,\n  "enableBranchAutoDeletion": false,\n  "enableBasicAuth": false,\n  "basicAuthCredentials": "",\n  "customRules": [\n    {\n      "source": "",\n      "target": "",\n      "status": "",\n      "condition": ""\n    }\n  ],\n  "tags": {},\n  "buildSpec": "",\n  "customHeaders": "",\n  "enableAutoBranchCreation": false,\n  "autoBranchCreationPatterns": [],\n  "autoBranchCreationConfig": {\n    "stage": "",\n    "framework": "",\n    "enableAutoBuild": "",\n    "environmentVariables": "",\n    "basicAuthCredentials": "",\n    "enableBasicAuth": "",\n    "enablePerformanceMode": "",\n    "buildSpec": "",\n    "enablePullRequestPreview": "",\n    "pullRequestEnvironmentName": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/apps
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "description": "",
  "repository": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "oauthToken": "",
  "accessToken": "",
  "environmentVariables": [],
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    [
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    ]
  ],
  "tags": [],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": [
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CreateBackendEnvironment
{{baseUrl}}/apps/:appId/backendenvironments
QUERY PARAMS

appId
BODY json

{
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/backendenvironments");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/backendenvironments" {:content-type :json
                                                                            :form-params {:environmentName ""
                                                                                          :stackName ""
                                                                                          :deploymentArtifacts ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/backendenvironments"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/backendenvironments"),
    Content = new StringContent("{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/backendenvironments");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/backendenvironments"

	payload := strings.NewReader("{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/backendenvironments HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 75

{
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/backendenvironments")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/backendenvironments"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/backendenvironments")
  .header("content-type", "application/json")
  .body("{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  environmentName: '',
  stackName: '',
  deploymentArtifacts: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/backendenvironments');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/backendenvironments',
  headers: {'content-type': 'application/json'},
  data: {environmentName: '', stackName: '', deploymentArtifacts: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/backendenvironments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"environmentName":"","stackName":"","deploymentArtifacts":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/backendenvironments',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "environmentName": "",\n  "stackName": "",\n  "deploymentArtifacts": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/backendenvironments',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({environmentName: '', stackName: '', deploymentArtifacts: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/backendenvironments',
  headers: {'content-type': 'application/json'},
  body: {environmentName: '', stackName: '', deploymentArtifacts: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/backendenvironments');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  environmentName: '',
  stackName: '',
  deploymentArtifacts: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/backendenvironments',
  headers: {'content-type': 'application/json'},
  data: {environmentName: '', stackName: '', deploymentArtifacts: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/backendenvironments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"environmentName":"","stackName":"","deploymentArtifacts":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"environmentName": @"",
                              @"stackName": @"",
                              @"deploymentArtifacts": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/backendenvironments"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/backendenvironments" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/backendenvironments",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'environmentName' => '',
    'stackName' => '',
    'deploymentArtifacts' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/backendenvironments', [
  'body' => '{
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/backendenvironments');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'environmentName' => '',
  'stackName' => '',
  'deploymentArtifacts' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'environmentName' => '',
  'stackName' => '',
  'deploymentArtifacts' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/backendenvironments');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/backendenvironments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/backendenvironments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/backendenvironments", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/backendenvironments"

payload = {
    "environmentName": "",
    "stackName": "",
    "deploymentArtifacts": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/backendenvironments"

payload <- "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/backendenvironments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/backendenvironments') do |req|
  req.body = "{\n  \"environmentName\": \"\",\n  \"stackName\": \"\",\n  \"deploymentArtifacts\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/backendenvironments";

    let payload = json!({
        "environmentName": "",
        "stackName": "",
        "deploymentArtifacts": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/backendenvironments \
  --header 'content-type: application/json' \
  --data '{
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
}'
echo '{
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/backendenvironments \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "environmentName": "",\n  "stackName": "",\n  "deploymentArtifacts": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/backendenvironments
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "environmentName": "",
  "stackName": "",
  "deploymentArtifacts": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/backendenvironments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CreateBranch
{{baseUrl}}/apps/:appId/branches
QUERY PARAMS

appId
BODY json

{
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": {},
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/branches" {:content-type :json
                                                                 :form-params {:branchName ""
                                                                               :description ""
                                                                               :stage ""
                                                                               :framework ""
                                                                               :enableNotification false
                                                                               :enableAutoBuild false
                                                                               :environmentVariables {}
                                                                               :basicAuthCredentials ""
                                                                               :enableBasicAuth false
                                                                               :enablePerformanceMode false
                                                                               :tags {}
                                                                               :buildSpec ""
                                                                               :ttl ""
                                                                               :displayName ""
                                                                               :enablePullRequestPreview false
                                                                               :pullRequestEnvironmentName ""
                                                                               :backendEnvironmentArn ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches"),
    Content = new StringContent("{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches"

	payload := strings.NewReader("{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/branches HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 429

{
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": {},
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/branches")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/branches")
  .header("content-type", "application/json")
  .body("{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  branchName: '',
  description: '',
  stage: '',
  framework: '',
  enableNotification: false,
  enableAutoBuild: false,
  environmentVariables: {},
  basicAuthCredentials: '',
  enableBasicAuth: false,
  enablePerformanceMode: false,
  tags: {},
  buildSpec: '',
  ttl: '',
  displayName: '',
  enablePullRequestPreview: false,
  pullRequestEnvironmentName: '',
  backendEnvironmentArn: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/branches');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches',
  headers: {'content-type': 'application/json'},
  data: {
    branchName: '',
    description: '',
    stage: '',
    framework: '',
    enableNotification: false,
    enableAutoBuild: false,
    environmentVariables: {},
    basicAuthCredentials: '',
    enableBasicAuth: false,
    enablePerformanceMode: false,
    tags: {},
    buildSpec: '',
    ttl: '',
    displayName: '',
    enablePullRequestPreview: false,
    pullRequestEnvironmentName: '',
    backendEnvironmentArn: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"branchName":"","description":"","stage":"","framework":"","enableNotification":false,"enableAutoBuild":false,"environmentVariables":{},"basicAuthCredentials":"","enableBasicAuth":false,"enablePerformanceMode":false,"tags":{},"buildSpec":"","ttl":"","displayName":"","enablePullRequestPreview":false,"pullRequestEnvironmentName":"","backendEnvironmentArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "branchName": "",\n  "description": "",\n  "stage": "",\n  "framework": "",\n  "enableNotification": false,\n  "enableAutoBuild": false,\n  "environmentVariables": {},\n  "basicAuthCredentials": "",\n  "enableBasicAuth": false,\n  "enablePerformanceMode": false,\n  "tags": {},\n  "buildSpec": "",\n  "ttl": "",\n  "displayName": "",\n  "enablePullRequestPreview": false,\n  "pullRequestEnvironmentName": "",\n  "backendEnvironmentArn": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  branchName: '',
  description: '',
  stage: '',
  framework: '',
  enableNotification: false,
  enableAutoBuild: false,
  environmentVariables: {},
  basicAuthCredentials: '',
  enableBasicAuth: false,
  enablePerformanceMode: false,
  tags: {},
  buildSpec: '',
  ttl: '',
  displayName: '',
  enablePullRequestPreview: false,
  pullRequestEnvironmentName: '',
  backendEnvironmentArn: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches',
  headers: {'content-type': 'application/json'},
  body: {
    branchName: '',
    description: '',
    stage: '',
    framework: '',
    enableNotification: false,
    enableAutoBuild: false,
    environmentVariables: {},
    basicAuthCredentials: '',
    enableBasicAuth: false,
    enablePerformanceMode: false,
    tags: {},
    buildSpec: '',
    ttl: '',
    displayName: '',
    enablePullRequestPreview: false,
    pullRequestEnvironmentName: '',
    backendEnvironmentArn: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/branches');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  branchName: '',
  description: '',
  stage: '',
  framework: '',
  enableNotification: false,
  enableAutoBuild: false,
  environmentVariables: {},
  basicAuthCredentials: '',
  enableBasicAuth: false,
  enablePerformanceMode: false,
  tags: {},
  buildSpec: '',
  ttl: '',
  displayName: '',
  enablePullRequestPreview: false,
  pullRequestEnvironmentName: '',
  backendEnvironmentArn: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches',
  headers: {'content-type': 'application/json'},
  data: {
    branchName: '',
    description: '',
    stage: '',
    framework: '',
    enableNotification: false,
    enableAutoBuild: false,
    environmentVariables: {},
    basicAuthCredentials: '',
    enableBasicAuth: false,
    enablePerformanceMode: false,
    tags: {},
    buildSpec: '',
    ttl: '',
    displayName: '',
    enablePullRequestPreview: false,
    pullRequestEnvironmentName: '',
    backendEnvironmentArn: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"branchName":"","description":"","stage":"","framework":"","enableNotification":false,"enableAutoBuild":false,"environmentVariables":{},"basicAuthCredentials":"","enableBasicAuth":false,"enablePerformanceMode":false,"tags":{},"buildSpec":"","ttl":"","displayName":"","enablePullRequestPreview":false,"pullRequestEnvironmentName":"","backendEnvironmentArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"branchName": @"",
                              @"description": @"",
                              @"stage": @"",
                              @"framework": @"",
                              @"enableNotification": @NO,
                              @"enableAutoBuild": @NO,
                              @"environmentVariables": @{  },
                              @"basicAuthCredentials": @"",
                              @"enableBasicAuth": @NO,
                              @"enablePerformanceMode": @NO,
                              @"tags": @{  },
                              @"buildSpec": @"",
                              @"ttl": @"",
                              @"displayName": @"",
                              @"enablePullRequestPreview": @NO,
                              @"pullRequestEnvironmentName": @"",
                              @"backendEnvironmentArn": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'branchName' => '',
    'description' => '',
    'stage' => '',
    'framework' => '',
    'enableNotification' => null,
    'enableAutoBuild' => null,
    'environmentVariables' => [
        
    ],
    'basicAuthCredentials' => '',
    'enableBasicAuth' => null,
    'enablePerformanceMode' => null,
    'tags' => [
        
    ],
    'buildSpec' => '',
    'ttl' => '',
    'displayName' => '',
    'enablePullRequestPreview' => null,
    'pullRequestEnvironmentName' => '',
    'backendEnvironmentArn' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/branches', [
  'body' => '{
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": {},
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'branchName' => '',
  'description' => '',
  'stage' => '',
  'framework' => '',
  'enableNotification' => null,
  'enableAutoBuild' => null,
  'environmentVariables' => [
    
  ],
  'basicAuthCredentials' => '',
  'enableBasicAuth' => null,
  'enablePerformanceMode' => null,
  'tags' => [
    
  ],
  'buildSpec' => '',
  'ttl' => '',
  'displayName' => '',
  'enablePullRequestPreview' => null,
  'pullRequestEnvironmentName' => '',
  'backendEnvironmentArn' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'branchName' => '',
  'description' => '',
  'stage' => '',
  'framework' => '',
  'enableNotification' => null,
  'enableAutoBuild' => null,
  'environmentVariables' => [
    
  ],
  'basicAuthCredentials' => '',
  'enableBasicAuth' => null,
  'enablePerformanceMode' => null,
  'tags' => [
    
  ],
  'buildSpec' => '',
  'ttl' => '',
  'displayName' => '',
  'enablePullRequestPreview' => null,
  'pullRequestEnvironmentName' => '',
  'backendEnvironmentArn' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/branches');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": {},
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": {},
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/branches", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches"

payload = {
    "branchName": "",
    "description": "",
    "stage": "",
    "framework": "",
    "enableNotification": False,
    "enableAutoBuild": False,
    "environmentVariables": {},
    "basicAuthCredentials": "",
    "enableBasicAuth": False,
    "enablePerformanceMode": False,
    "tags": {},
    "buildSpec": "",
    "ttl": "",
    "displayName": "",
    "enablePullRequestPreview": False,
    "pullRequestEnvironmentName": "",
    "backendEnvironmentArn": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches"

payload <- "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/branches') do |req|
  req.body = "{\n  \"branchName\": \"\",\n  \"description\": \"\",\n  \"stage\": \"\",\n  \"framework\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"tags\": {},\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches";

    let payload = json!({
        "branchName": "",
        "description": "",
        "stage": "",
        "framework": "",
        "enableNotification": false,
        "enableAutoBuild": false,
        "environmentVariables": json!({}),
        "basicAuthCredentials": "",
        "enableBasicAuth": false,
        "enablePerformanceMode": false,
        "tags": json!({}),
        "buildSpec": "",
        "ttl": "",
        "displayName": "",
        "enablePullRequestPreview": false,
        "pullRequestEnvironmentName": "",
        "backendEnvironmentArn": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/branches \
  --header 'content-type: application/json' \
  --data '{
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": {},
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}'
echo '{
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": {},
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/branches \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "branchName": "",\n  "description": "",\n  "stage": "",\n  "framework": "",\n  "enableNotification": false,\n  "enableAutoBuild": false,\n  "environmentVariables": {},\n  "basicAuthCredentials": "",\n  "enableBasicAuth": false,\n  "enablePerformanceMode": false,\n  "tags": {},\n  "buildSpec": "",\n  "ttl": "",\n  "displayName": "",\n  "enablePullRequestPreview": false,\n  "pullRequestEnvironmentName": "",\n  "backendEnvironmentArn": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "branchName": "",
  "description": "",
  "stage": "",
  "framework": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": [],
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "tags": [],
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CreateDeployment
{{baseUrl}}/apps/:appId/branches/:branchName/deployments
QUERY PARAMS

appId
branchName
BODY json

{
  "fileMap": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/deployments");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"fileMap\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/branches/:branchName/deployments" {:content-type :json
                                                                                         :form-params {:fileMap {}}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/deployments"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"fileMap\": {}\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/deployments"),
    Content = new StringContent("{\n  \"fileMap\": {}\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/deployments");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"fileMap\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/deployments"

	payload := strings.NewReader("{\n  \"fileMap\": {}\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/branches/:branchName/deployments HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 19

{
  "fileMap": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/branches/:branchName/deployments")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"fileMap\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/deployments"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"fileMap\": {}\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"fileMap\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/deployments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/branches/:branchName/deployments")
  .header("content-type", "application/json")
  .body("{\n  \"fileMap\": {}\n}")
  .asString();
const data = JSON.stringify({
  fileMap: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/deployments');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments',
  headers: {'content-type': 'application/json'},
  data: {fileMap: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/deployments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"fileMap":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "fileMap": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"fileMap\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/deployments")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/deployments',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({fileMap: {}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments',
  headers: {'content-type': 'application/json'},
  body: {fileMap: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/deployments');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  fileMap: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments',
  headers: {'content-type': 'application/json'},
  data: {fileMap: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/deployments';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"fileMap":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"fileMap": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/deployments"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/deployments" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"fileMap\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/deployments",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'fileMap' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/deployments', [
  'body' => '{
  "fileMap": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/deployments');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'fileMap' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'fileMap' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/deployments');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/deployments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "fileMap": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/deployments' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "fileMap": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"fileMap\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/branches/:branchName/deployments", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/deployments"

payload = { "fileMap": {} }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/deployments"

payload <- "{\n  \"fileMap\": {}\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/deployments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"fileMap\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/branches/:branchName/deployments') do |req|
  req.body = "{\n  \"fileMap\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/deployments";

    let payload = json!({"fileMap": json!({})});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/deployments \
  --header 'content-type: application/json' \
  --data '{
  "fileMap": {}
}'
echo '{
  "fileMap": {}
}' |  \
  http POST {{baseUrl}}/apps/:appId/branches/:branchName/deployments \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "fileMap": {}\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/deployments
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["fileMap": []] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/deployments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CreateDomainAssociation
{{baseUrl}}/apps/:appId/domains
QUERY PARAMS

appId
BODY json

{
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/domains");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/domains" {:content-type :json
                                                                :form-params {:domainName ""
                                                                              :enableAutoSubDomain false
                                                                              :subDomainSettings [{:prefix ""
                                                                                                   :branchName ""}]
                                                                              :autoSubDomainCreationPatterns []
                                                                              :autoSubDomainIAMRole ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/domains"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/domains"),
    Content = new StringContent("{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/domains");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/domains"

	payload := strings.NewReader("{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/domains HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 208

{
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/domains")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/domains"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/domains")
  .header("content-type", "application/json")
  .body("{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  domainName: '',
  enableAutoSubDomain: false,
  subDomainSettings: [
    {
      prefix: '',
      branchName: ''
    }
  ],
  autoSubDomainCreationPatterns: [],
  autoSubDomainIAMRole: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/domains');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/domains',
  headers: {'content-type': 'application/json'},
  data: {
    domainName: '',
    enableAutoSubDomain: false,
    subDomainSettings: [{prefix: '', branchName: ''}],
    autoSubDomainCreationPatterns: [],
    autoSubDomainIAMRole: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/domains';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"domainName":"","enableAutoSubDomain":false,"subDomainSettings":[{"prefix":"","branchName":""}],"autoSubDomainCreationPatterns":[],"autoSubDomainIAMRole":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/domains',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "domainName": "",\n  "enableAutoSubDomain": false,\n  "subDomainSettings": [\n    {\n      "prefix": "",\n      "branchName": ""\n    }\n  ],\n  "autoSubDomainCreationPatterns": [],\n  "autoSubDomainIAMRole": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/domains',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  domainName: '',
  enableAutoSubDomain: false,
  subDomainSettings: [{prefix: '', branchName: ''}],
  autoSubDomainCreationPatterns: [],
  autoSubDomainIAMRole: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/domains',
  headers: {'content-type': 'application/json'},
  body: {
    domainName: '',
    enableAutoSubDomain: false,
    subDomainSettings: [{prefix: '', branchName: ''}],
    autoSubDomainCreationPatterns: [],
    autoSubDomainIAMRole: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/domains');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  domainName: '',
  enableAutoSubDomain: false,
  subDomainSettings: [
    {
      prefix: '',
      branchName: ''
    }
  ],
  autoSubDomainCreationPatterns: [],
  autoSubDomainIAMRole: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/domains',
  headers: {'content-type': 'application/json'},
  data: {
    domainName: '',
    enableAutoSubDomain: false,
    subDomainSettings: [{prefix: '', branchName: ''}],
    autoSubDomainCreationPatterns: [],
    autoSubDomainIAMRole: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/domains';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"domainName":"","enableAutoSubDomain":false,"subDomainSettings":[{"prefix":"","branchName":""}],"autoSubDomainCreationPatterns":[],"autoSubDomainIAMRole":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"domainName": @"",
                              @"enableAutoSubDomain": @NO,
                              @"subDomainSettings": @[ @{ @"prefix": @"", @"branchName": @"" } ],
                              @"autoSubDomainCreationPatterns": @[  ],
                              @"autoSubDomainIAMRole": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/domains"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/domains" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/domains",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'domainName' => '',
    'enableAutoSubDomain' => null,
    'subDomainSettings' => [
        [
                'prefix' => '',
                'branchName' => ''
        ]
    ],
    'autoSubDomainCreationPatterns' => [
        
    ],
    'autoSubDomainIAMRole' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/domains', [
  'body' => '{
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/domains');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'domainName' => '',
  'enableAutoSubDomain' => null,
  'subDomainSettings' => [
    [
        'prefix' => '',
        'branchName' => ''
    ]
  ],
  'autoSubDomainCreationPatterns' => [
    
  ],
  'autoSubDomainIAMRole' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'domainName' => '',
  'enableAutoSubDomain' => null,
  'subDomainSettings' => [
    [
        'prefix' => '',
        'branchName' => ''
    ]
  ],
  'autoSubDomainCreationPatterns' => [
    
  ],
  'autoSubDomainIAMRole' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/domains');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/domains' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/domains' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/domains", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/domains"

payload = {
    "domainName": "",
    "enableAutoSubDomain": False,
    "subDomainSettings": [
        {
            "prefix": "",
            "branchName": ""
        }
    ],
    "autoSubDomainCreationPatterns": [],
    "autoSubDomainIAMRole": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/domains"

payload <- "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/domains")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/domains') do |req|
  req.body = "{\n  \"domainName\": \"\",\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/domains";

    let payload = json!({
        "domainName": "",
        "enableAutoSubDomain": false,
        "subDomainSettings": (
            json!({
                "prefix": "",
                "branchName": ""
            })
        ),
        "autoSubDomainCreationPatterns": (),
        "autoSubDomainIAMRole": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/domains \
  --header 'content-type: application/json' \
  --data '{
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}'
echo '{
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/domains \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "domainName": "",\n  "enableAutoSubDomain": false,\n  "subDomainSettings": [\n    {\n      "prefix": "",\n      "branchName": ""\n    }\n  ],\n  "autoSubDomainCreationPatterns": [],\n  "autoSubDomainIAMRole": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/domains
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "domainName": "",
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    [
      "prefix": "",
      "branchName": ""
    ]
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/domains")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST CreateWebhook
{{baseUrl}}/apps/:appId/webhooks
QUERY PARAMS

appId
BODY json

{
  "branchName": "",
  "description": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/webhooks");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/webhooks" {:content-type :json
                                                                 :form-params {:branchName ""
                                                                               :description ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/webhooks"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/webhooks"),
    Content = new StringContent("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/webhooks");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/webhooks"

	payload := strings.NewReader("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/webhooks HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 43

{
  "branchName": "",
  "description": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/webhooks")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/webhooks"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/webhooks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/webhooks")
  .header("content-type", "application/json")
  .body("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  branchName: '',
  description: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/webhooks');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/webhooks',
  headers: {'content-type': 'application/json'},
  data: {branchName: '', description: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/webhooks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"branchName":"","description":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/webhooks',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "branchName": "",\n  "description": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/webhooks")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/webhooks',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({branchName: '', description: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/webhooks',
  headers: {'content-type': 'application/json'},
  body: {branchName: '', description: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/webhooks');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  branchName: '',
  description: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/webhooks',
  headers: {'content-type': 'application/json'},
  data: {branchName: '', description: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/webhooks';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"branchName":"","description":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"branchName": @"",
                              @"description": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/webhooks"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/webhooks" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/webhooks",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'branchName' => '',
    'description' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/webhooks', [
  'body' => '{
  "branchName": "",
  "description": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/webhooks');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'branchName' => '',
  'description' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'branchName' => '',
  'description' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/webhooks');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/webhooks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "branchName": "",
  "description": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/webhooks' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "branchName": "",
  "description": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/webhooks", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/webhooks"

payload = {
    "branchName": "",
    "description": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/webhooks"

payload <- "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/webhooks")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/webhooks') do |req|
  req.body = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/webhooks";

    let payload = json!({
        "branchName": "",
        "description": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/webhooks \
  --header 'content-type: application/json' \
  --data '{
  "branchName": "",
  "description": ""
}'
echo '{
  "branchName": "",
  "description": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/webhooks \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "branchName": "",\n  "description": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/webhooks
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "branchName": "",
  "description": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/webhooks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE DeleteApp
{{baseUrl}}/apps/:appId
QUERY PARAMS

appId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apps/:appId")
require "http/client"

url = "{{baseUrl}}/apps/:appId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apps/:appId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apps/:appId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apps/:appId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apps/:appId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/apps/:appId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/apps/:appId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apps/:appId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/apps/:appId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apps/:appId');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apps/:appId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apps/:appId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apps/:appId
http DELETE {{baseUrl}}/apps/:appId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apps/:appId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE DeleteBackendEnvironment
{{baseUrl}}/apps/:appId/backendenvironments/:environmentName
QUERY PARAMS

appId
environmentName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
require "http/client"

url = "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apps/:appId/backendenvironments/:environmentName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/backendenvironments/:environmentName',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apps/:appId/backendenvironments/:environmentName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apps/:appId/backendenvironments/:environmentName') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apps/:appId/backendenvironments/:environmentName
http DELETE {{baseUrl}}/apps/:appId/backendenvironments/:environmentName
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apps/:appId/backendenvironments/:environmentName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE DeleteBranch
{{baseUrl}}/apps/:appId/branches/:branchName
QUERY PARAMS

appId
branchName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apps/:appId/branches/:branchName")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apps/:appId/branches/:branchName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apps/:appId/branches/:branchName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apps/:appId/branches/:branchName")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apps/:appId/branches/:branchName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apps/:appId/branches/:branchName') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apps/:appId/branches/:branchName
http DELETE {{baseUrl}}/apps/:appId/branches/:branchName
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE DeleteDomainAssociation
{{baseUrl}}/apps/:appId/domains/:domainName
QUERY PARAMS

appId
domainName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/domains/:domainName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apps/:appId/domains/:domainName")
require "http/client"

url = "{{baseUrl}}/apps/:appId/domains/:domainName"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/domains/:domainName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/domains/:domainName");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/domains/:domainName"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apps/:appId/domains/:domainName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apps/:appId/domains/:domainName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/domains/:domainName"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains/:domainName")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apps/:appId/domains/:domainName")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apps/:appId/domains/:domainName');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/domains/:domainName';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/domains/:domainName',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains/:domainName")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/domains/:domainName',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apps/:appId/domains/:domainName');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/domains/:domainName';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/domains/:domainName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/domains/:domainName" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/domains/:domainName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apps/:appId/domains/:domainName');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/domains/:domainName');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/domains/:domainName');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/domains/:domainName' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/domains/:domainName' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apps/:appId/domains/:domainName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/domains/:domainName"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/domains/:domainName"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/domains/:domainName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apps/:appId/domains/:domainName') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/domains/:domainName";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apps/:appId/domains/:domainName
http DELETE {{baseUrl}}/apps/:appId/domains/:domainName
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apps/:appId/domains/:domainName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/domains/:domainName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE DeleteJob
{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
QUERY PARAMS

appId
branchName
jobId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apps/:appId/branches/:branchName/jobs/:jobId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
http DELETE {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE DeleteWebhook
{{baseUrl}}/webhooks/:webhookId
QUERY PARAMS

webhookId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/webhooks/:webhookId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/webhooks/:webhookId")
require "http/client"

url = "{{baseUrl}}/webhooks/:webhookId"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/webhooks/:webhookId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/webhooks/:webhookId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/webhooks/:webhookId"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/webhooks/:webhookId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/webhooks/:webhookId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/webhooks/:webhookId"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/webhooks/:webhookId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/webhooks/:webhookId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/webhooks/:webhookId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/webhooks/:webhookId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/webhooks/:webhookId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/webhooks/:webhookId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/webhooks/:webhookId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/webhooks/:webhookId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/webhooks/:webhookId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/webhooks/:webhookId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/webhooks/:webhookId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/webhooks/:webhookId';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/webhooks/:webhookId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/webhooks/:webhookId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/webhooks/:webhookId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/webhooks/:webhookId');

echo $response->getBody();
setUrl('{{baseUrl}}/webhooks/:webhookId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/webhooks/:webhookId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/webhooks/:webhookId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/webhooks/:webhookId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/webhooks/:webhookId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/webhooks/:webhookId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/webhooks/:webhookId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/webhooks/:webhookId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/webhooks/:webhookId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/webhooks/:webhookId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/webhooks/:webhookId
http DELETE {{baseUrl}}/webhooks/:webhookId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/webhooks/:webhookId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/webhooks/:webhookId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST GenerateAccessLogs
{{baseUrl}}/apps/:appId/accesslogs
QUERY PARAMS

appId
BODY json

{
  "startTime": "",
  "endTime": "",
  "domainName": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/accesslogs");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/accesslogs" {:content-type :json
                                                                   :form-params {:startTime ""
                                                                                 :endTime ""
                                                                                 :domainName ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/accesslogs"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/accesslogs"),
    Content = new StringContent("{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/accesslogs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/accesslogs"

	payload := strings.NewReader("{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/accesslogs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 58

{
  "startTime": "",
  "endTime": "",
  "domainName": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/accesslogs")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/accesslogs"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/accesslogs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/accesslogs")
  .header("content-type", "application/json")
  .body("{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  startTime: '',
  endTime: '',
  domainName: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/accesslogs');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/accesslogs',
  headers: {'content-type': 'application/json'},
  data: {startTime: '', endTime: '', domainName: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/accesslogs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"startTime":"","endTime":"","domainName":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/accesslogs',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "startTime": "",\n  "endTime": "",\n  "domainName": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/accesslogs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/accesslogs',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({startTime: '', endTime: '', domainName: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/accesslogs',
  headers: {'content-type': 'application/json'},
  body: {startTime: '', endTime: '', domainName: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/accesslogs');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  startTime: '',
  endTime: '',
  domainName: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/accesslogs',
  headers: {'content-type': 'application/json'},
  data: {startTime: '', endTime: '', domainName: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/accesslogs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"startTime":"","endTime":"","domainName":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"startTime": @"",
                              @"endTime": @"",
                              @"domainName": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/accesslogs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/accesslogs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/accesslogs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'startTime' => '',
    'endTime' => '',
    'domainName' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/accesslogs', [
  'body' => '{
  "startTime": "",
  "endTime": "",
  "domainName": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/accesslogs');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'startTime' => '',
  'endTime' => '',
  'domainName' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'startTime' => '',
  'endTime' => '',
  'domainName' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/accesslogs');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/accesslogs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "startTime": "",
  "endTime": "",
  "domainName": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/accesslogs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "startTime": "",
  "endTime": "",
  "domainName": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/accesslogs", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/accesslogs"

payload = {
    "startTime": "",
    "endTime": "",
    "domainName": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/accesslogs"

payload <- "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/accesslogs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/accesslogs') do |req|
  req.body = "{\n  \"startTime\": \"\",\n  \"endTime\": \"\",\n  \"domainName\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/accesslogs";

    let payload = json!({
        "startTime": "",
        "endTime": "",
        "domainName": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/accesslogs \
  --header 'content-type: application/json' \
  --data '{
  "startTime": "",
  "endTime": "",
  "domainName": ""
}'
echo '{
  "startTime": "",
  "endTime": "",
  "domainName": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/accesslogs \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "startTime": "",\n  "endTime": "",\n  "domainName": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/accesslogs
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "startTime": "",
  "endTime": "",
  "domainName": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/accesslogs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET GetApp
{{baseUrl}}/apps/:appId
QUERY PARAMS

appId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId")
require "http/client"

url = "{{baseUrl}}/apps/:appId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId
http GET {{baseUrl}}/apps/:appId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET GetArtifactUrl
{{baseUrl}}/artifacts/:artifactId
QUERY PARAMS

artifactId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/artifacts/:artifactId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/artifacts/:artifactId")
require "http/client"

url = "{{baseUrl}}/artifacts/:artifactId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/artifacts/:artifactId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/artifacts/:artifactId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/artifacts/:artifactId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/artifacts/:artifactId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/artifacts/:artifactId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/artifacts/:artifactId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/artifacts/:artifactId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/artifacts/:artifactId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/artifacts/:artifactId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/artifacts/:artifactId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/artifacts/:artifactId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/artifacts/:artifactId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/artifacts/:artifactId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/artifacts/:artifactId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/artifacts/:artifactId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/artifacts/:artifactId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/artifacts/:artifactId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/artifacts/:artifactId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/artifacts/:artifactId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/artifacts/:artifactId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/artifacts/:artifactId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/artifacts/:artifactId');

echo $response->getBody();
setUrl('{{baseUrl}}/artifacts/:artifactId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/artifacts/:artifactId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/artifacts/:artifactId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/artifacts/:artifactId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/artifacts/:artifactId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/artifacts/:artifactId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/artifacts/:artifactId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/artifacts/:artifactId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/artifacts/:artifactId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/artifacts/:artifactId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/artifacts/:artifactId
http GET {{baseUrl}}/artifacts/:artifactId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/artifacts/:artifactId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/artifacts/:artifactId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET GetBackendEnvironment
{{baseUrl}}/apps/:appId/backendenvironments/:environmentName
QUERY PARAMS

appId
environmentName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
require "http/client"

url = "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/backendenvironments/:environmentName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/backendenvironments/:environmentName',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/backendenvironments/:environmentName');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/backendenvironments/:environmentName' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/backendenvironments/:environmentName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/backendenvironments/:environmentName') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/backendenvironments/:environmentName
http GET {{baseUrl}}/apps/:appId/backendenvironments/:environmentName
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/backendenvironments/:environmentName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/backendenvironments/:environmentName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET GetBranch
{{baseUrl}}/apps/:appId/branches/:branchName
QUERY PARAMS

appId
branchName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/branches/:branchName")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/branches/:branchName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/branches/:branchName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/branches/:branchName")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/branches/:branchName');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/branches/:branchName');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/branches/:branchName');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/branches/:branchName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/branches/:branchName') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/branches/:branchName
http GET {{baseUrl}}/apps/:appId/branches/:branchName
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET GetDomainAssociation
{{baseUrl}}/apps/:appId/domains/:domainName
QUERY PARAMS

appId
domainName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/domains/:domainName");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/domains/:domainName")
require "http/client"

url = "{{baseUrl}}/apps/:appId/domains/:domainName"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/domains/:domainName"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/domains/:domainName");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/domains/:domainName"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/domains/:domainName HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/domains/:domainName")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/domains/:domainName"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains/:domainName")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/domains/:domainName")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/domains/:domainName');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/domains/:domainName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/domains/:domainName',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains/:domainName")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/domains/:domainName',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/domains/:domainName');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/domains/:domainName';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/domains/:domainName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/domains/:domainName" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/domains/:domainName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/domains/:domainName');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/domains/:domainName');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/domains/:domainName');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/domains/:domainName' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/domains/:domainName' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/domains/:domainName")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/domains/:domainName"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/domains/:domainName"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/domains/:domainName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/domains/:domainName') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/domains/:domainName";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/domains/:domainName
http GET {{baseUrl}}/apps/:appId/domains/:domainName
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/domains/:domainName
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/domains/:domainName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET GetJob
{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
QUERY PARAMS

appId
branchName
jobId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/branches/:branchName/jobs/:jobId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
http GET {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET GetWebhook
{{baseUrl}}/webhooks/:webhookId
QUERY PARAMS

webhookId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/webhooks/:webhookId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/webhooks/:webhookId")
require "http/client"

url = "{{baseUrl}}/webhooks/:webhookId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/webhooks/:webhookId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/webhooks/:webhookId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/webhooks/:webhookId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/webhooks/:webhookId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/webhooks/:webhookId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/webhooks/:webhookId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/webhooks/:webhookId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/webhooks/:webhookId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/webhooks/:webhookId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/webhooks/:webhookId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/webhooks/:webhookId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/webhooks/:webhookId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/webhooks/:webhookId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/webhooks/:webhookId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/webhooks/:webhookId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/webhooks/:webhookId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/webhooks/:webhookId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/webhooks/:webhookId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/webhooks/:webhookId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/webhooks/:webhookId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/webhooks/:webhookId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/webhooks/:webhookId');

echo $response->getBody();
setUrl('{{baseUrl}}/webhooks/:webhookId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/webhooks/:webhookId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/webhooks/:webhookId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/webhooks/:webhookId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/webhooks/:webhookId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/webhooks/:webhookId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/webhooks/:webhookId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/webhooks/:webhookId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/webhooks/:webhookId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/webhooks/:webhookId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/webhooks/:webhookId
http GET {{baseUrl}}/webhooks/:webhookId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/webhooks/:webhookId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/webhooks/:webhookId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListApps
{{baseUrl}}/apps
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps")
require "http/client"

url = "{{baseUrl}}/apps"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/apps'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/apps'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/apps'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps');

echo $response->getBody();
setUrl('{{baseUrl}}/apps');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps
http GET {{baseUrl}}/apps
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListArtifacts
{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts
QUERY PARAMS

appId
branchName
jobId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/artifacts HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/artifacts',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/artifacts') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts
http GET {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/artifacts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListBackendEnvironments
{{baseUrl}}/apps/:appId/backendenvironments
QUERY PARAMS

appId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/backendenvironments");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/backendenvironments")
require "http/client"

url = "{{baseUrl}}/apps/:appId/backendenvironments"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/backendenvironments"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/backendenvironments");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/backendenvironments"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/backendenvironments HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/backendenvironments")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/backendenvironments"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/backendenvironments")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/backendenvironments');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/backendenvironments'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/backendenvironments';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/backendenvironments',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/backendenvironments")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/backendenvironments',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/backendenvironments'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/backendenvironments');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/backendenvironments'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/backendenvironments';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/backendenvironments"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/backendenvironments" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/backendenvironments",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/backendenvironments');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/backendenvironments');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/backendenvironments');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/backendenvironments' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/backendenvironments' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/backendenvironments")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/backendenvironments"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/backendenvironments"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/backendenvironments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/backendenvironments') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/backendenvironments";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/backendenvironments
http GET {{baseUrl}}/apps/:appId/backendenvironments
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/backendenvironments
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/backendenvironments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListBranches
{{baseUrl}}/apps/:appId/branches
QUERY PARAMS

appId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/branches")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/branches HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/branches")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/branches")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/branches');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/branches'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/branches'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/branches');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/branches'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/branches');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/branches")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/branches') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/branches
http GET {{baseUrl}}/apps/:appId/branches
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListDomainAssociations
{{baseUrl}}/apps/:appId/domains
QUERY PARAMS

appId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/domains");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/domains")
require "http/client"

url = "{{baseUrl}}/apps/:appId/domains"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/domains"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/domains");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/domains"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/domains HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/domains")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/domains"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/domains")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/domains');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/domains'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/domains';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/domains',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/domains',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/domains'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/domains');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/domains'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/domains';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/domains"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/domains" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/domains",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/domains');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/domains');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/domains');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/domains' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/domains' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/domains")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/domains"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/domains"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/domains")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/domains') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/domains";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/domains
http GET {{baseUrl}}/apps/:appId/domains
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/domains
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/domains")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListJobs
{{baseUrl}}/apps/:appId/branches/:branchName/jobs
QUERY PARAMS

appId
branchName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/jobs");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/jobs"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/jobs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/branches/:branchName/jobs HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/jobs"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/jobs',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/jobs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/jobs" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/jobs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/branches/:branchName/jobs")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/branches/:branchName/jobs') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/jobs
http GET {{baseUrl}}/apps/:appId/branches/:branchName/jobs
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/jobs
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/jobs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListTagsForResource
{{baseUrl}}/tags/:resourceArn
QUERY PARAMS

resourceArn
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:resourceArn");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/tags/:resourceArn")
require "http/client"

url = "{{baseUrl}}/tags/:resourceArn"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/tags/:resourceArn"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tags/:resourceArn");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/tags/:resourceArn"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/tags/:resourceArn HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tags/:resourceArn")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tags/:resourceArn"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/tags/:resourceArn")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tags/:resourceArn")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/tags/:resourceArn');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/tags/:resourceArn'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tags/:resourceArn';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/tags/:resourceArn',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/tags/:resourceArn")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tags/:resourceArn',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/tags/:resourceArn'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/tags/:resourceArn');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/tags/:resourceArn'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/tags/:resourceArn';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tags/:resourceArn"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/tags/:resourceArn" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tags/:resourceArn",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/tags/:resourceArn');

echo $response->getBody();
setUrl('{{baseUrl}}/tags/:resourceArn');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/tags/:resourceArn');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tags/:resourceArn' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:resourceArn' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/tags/:resourceArn")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/tags/:resourceArn"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/tags/:resourceArn"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/tags/:resourceArn")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/tags/:resourceArn') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/tags/:resourceArn";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/tags/:resourceArn
http GET {{baseUrl}}/tags/:resourceArn
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/tags/:resourceArn
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:resourceArn")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET ListWebhooks
{{baseUrl}}/apps/:appId/webhooks
QUERY PARAMS

appId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/webhooks");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/apps/:appId/webhooks")
require "http/client"

url = "{{baseUrl}}/apps/:appId/webhooks"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/webhooks"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/webhooks");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/webhooks"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/apps/:appId/webhooks HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/apps/:appId/webhooks")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/webhooks"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/webhooks")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/apps/:appId/webhooks")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/apps/:appId/webhooks');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/webhooks'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/webhooks';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/webhooks',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/webhooks")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/webhooks',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/webhooks'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/apps/:appId/webhooks');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/apps/:appId/webhooks'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/webhooks';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/webhooks"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/webhooks" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/webhooks",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/apps/:appId/webhooks');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/webhooks');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/webhooks');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/webhooks' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/webhooks' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/apps/:appId/webhooks")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/webhooks"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/webhooks"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/webhooks")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/apps/:appId/webhooks') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/webhooks";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/apps/:appId/webhooks
http GET {{baseUrl}}/apps/:appId/webhooks
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/apps/:appId/webhooks
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/webhooks")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST StartDeployment
{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start
QUERY PARAMS

appId
branchName
BODY json

{
  "jobId": "",
  "sourceUrl": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start" {:content-type :json
                                                                                               :form-params {:jobId ""
                                                                                                             :sourceUrl ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start"),
    Content = new StringContent("{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start"

	payload := strings.NewReader("{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/branches/:branchName/deployments/start HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 36

{
  "jobId": "",
  "sourceUrl": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start")
  .header("content-type", "application/json")
  .body("{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  jobId: '',
  sourceUrl: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start',
  headers: {'content-type': 'application/json'},
  data: {jobId: '', sourceUrl: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"jobId":"","sourceUrl":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "jobId": "",\n  "sourceUrl": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/deployments/start',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({jobId: '', sourceUrl: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start',
  headers: {'content-type': 'application/json'},
  body: {jobId: '', sourceUrl: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  jobId: '',
  sourceUrl: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start',
  headers: {'content-type': 'application/json'},
  data: {jobId: '', sourceUrl: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"jobId":"","sourceUrl":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"jobId": @"",
                              @"sourceUrl": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'jobId' => '',
    'sourceUrl' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start', [
  'body' => '{
  "jobId": "",
  "sourceUrl": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'jobId' => '',
  'sourceUrl' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'jobId' => '',
  'sourceUrl' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "jobId": "",
  "sourceUrl": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "jobId": "",
  "sourceUrl": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/branches/:branchName/deployments/start", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start"

payload = {
    "jobId": "",
    "sourceUrl": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start"

payload <- "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/branches/:branchName/deployments/start') do |req|
  req.body = "{\n  \"jobId\": \"\",\n  \"sourceUrl\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start";

    let payload = json!({
        "jobId": "",
        "sourceUrl": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/deployments/start \
  --header 'content-type: application/json' \
  --data '{
  "jobId": "",
  "sourceUrl": ""
}'
echo '{
  "jobId": "",
  "sourceUrl": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/branches/:branchName/deployments/start \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "jobId": "",\n  "sourceUrl": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/deployments/start
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "jobId": "",
  "sourceUrl": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/deployments/start")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST StartJob
{{baseUrl}}/apps/:appId/branches/:branchName/jobs
QUERY PARAMS

appId
branchName
BODY json

{
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/jobs");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/branches/:branchName/jobs" {:content-type :json
                                                                                  :form-params {:jobId ""
                                                                                                :jobType ""
                                                                                                :jobReason ""
                                                                                                :commitId ""
                                                                                                :commitMessage ""
                                                                                                :commitTime ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/jobs"),
    Content = new StringContent("{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/jobs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"

	payload := strings.NewReader("{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/branches/:branchName/jobs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 114

{
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/jobs"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .header("content-type", "application/json")
  .body("{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  jobId: '',
  jobType: '',
  jobReason: '',
  commitId: '',
  commitMessage: '',
  commitTime: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs',
  headers: {'content-type': 'application/json'},
  data: {
    jobId: '',
    jobType: '',
    jobReason: '',
    commitId: '',
    commitMessage: '',
    commitTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"jobId":"","jobType":"","jobReason":"","commitId":"","commitMessage":"","commitTime":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "jobId": "",\n  "jobType": "",\n  "jobReason": "",\n  "commitId": "",\n  "commitMessage": "",\n  "commitTime": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/jobs',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  jobId: '',
  jobType: '',
  jobReason: '',
  commitId: '',
  commitMessage: '',
  commitTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs',
  headers: {'content-type': 'application/json'},
  body: {
    jobId: '',
    jobType: '',
    jobReason: '',
    commitId: '',
    commitMessage: '',
    commitTime: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  jobId: '',
  jobType: '',
  jobReason: '',
  commitId: '',
  commitMessage: '',
  commitTime: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs',
  headers: {'content-type': 'application/json'},
  data: {
    jobId: '',
    jobType: '',
    jobReason: '',
    commitId: '',
    commitMessage: '',
    commitTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"jobId":"","jobType":"","jobReason":"","commitId":"","commitMessage":"","commitTime":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"jobId": @"",
                              @"jobType": @"",
                              @"jobReason": @"",
                              @"commitId": @"",
                              @"commitMessage": @"",
                              @"commitTime": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/jobs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/jobs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/jobs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'jobId' => '',
    'jobType' => '',
    'jobReason' => '',
    'commitId' => '',
    'commitMessage' => '',
    'commitTime' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs', [
  'body' => '{
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'jobId' => '',
  'jobType' => '',
  'jobReason' => '',
  'commitId' => '',
  'commitMessage' => '',
  'commitTime' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'jobId' => '',
  'jobType' => '',
  'jobReason' => '',
  'commitId' => '',
  'commitMessage' => '',
  'commitTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/branches/:branchName/jobs", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"

payload = {
    "jobId": "",
    "jobType": "",
    "jobReason": "",
    "commitId": "",
    "commitMessage": "",
    "commitTime": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/jobs"

payload <- "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/jobs")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/branches/:branchName/jobs') do |req|
  req.body = "{\n  \"jobId\": \"\",\n  \"jobType\": \"\",\n  \"jobReason\": \"\",\n  \"commitId\": \"\",\n  \"commitMessage\": \"\",\n  \"commitTime\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs";

    let payload = json!({
        "jobId": "",
        "jobType": "",
        "jobReason": "",
        "commitId": "",
        "commitMessage": "",
        "commitTime": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/jobs \
  --header 'content-type: application/json' \
  --data '{
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
}'
echo '{
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/branches/:branchName/jobs \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "jobId": "",\n  "jobType": "",\n  "jobReason": "",\n  "commitId": "",\n  "commitMessage": "",\n  "commitTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/jobs
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "jobId": "",
  "jobType": "",
  "jobReason": "",
  "commitId": "",
  "commitMessage": "",
  "commitTime": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/jobs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE StopJob
{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop
QUERY PARAMS

appId
branchName
jobId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop")
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/stop HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/stop',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop');

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/stop")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/apps/:appId/branches/:branchName/jobs/:jobId/stop') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop
http DELETE {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName/jobs/:jobId/stop")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST TagResource
{{baseUrl}}/tags/:resourceArn
QUERY PARAMS

resourceArn
BODY json

{
  "tags": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:resourceArn");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"tags\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/tags/:resourceArn" {:content-type :json
                                                              :form-params {:tags {}}})
require "http/client"

url = "{{baseUrl}}/tags/:resourceArn"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"tags\": {}\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/tags/:resourceArn"),
    Content = new StringContent("{\n  \"tags\": {}\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tags/:resourceArn");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"tags\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/tags/:resourceArn"

	payload := strings.NewReader("{\n  \"tags\": {}\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/tags/:resourceArn HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 16

{
  "tags": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tags/:resourceArn")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"tags\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tags/:resourceArn"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"tags\": {}\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"tags\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/tags/:resourceArn")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tags/:resourceArn")
  .header("content-type", "application/json")
  .body("{\n  \"tags\": {}\n}")
  .asString();
const data = JSON.stringify({
  tags: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/tags/:resourceArn');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tags/:resourceArn',
  headers: {'content-type': 'application/json'},
  data: {tags: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tags/:resourceArn';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"tags":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/tags/:resourceArn',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "tags": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"tags\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/tags/:resourceArn")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tags/:resourceArn',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({tags: {}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tags/:resourceArn',
  headers: {'content-type': 'application/json'},
  body: {tags: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/tags/:resourceArn');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  tags: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tags/:resourceArn',
  headers: {'content-type': 'application/json'},
  data: {tags: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/tags/:resourceArn';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"tags":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"tags": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tags/:resourceArn"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/tags/:resourceArn" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"tags\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tags/:resourceArn",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'tags' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/tags/:resourceArn', [
  'body' => '{
  "tags": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/tags/:resourceArn');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'tags' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'tags' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/tags/:resourceArn');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tags/:resourceArn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:resourceArn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "tags": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"tags\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/tags/:resourceArn", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/tags/:resourceArn"

payload = { "tags": {} }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/tags/:resourceArn"

payload <- "{\n  \"tags\": {}\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/tags/:resourceArn")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"tags\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/tags/:resourceArn') do |req|
  req.body = "{\n  \"tags\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/tags/:resourceArn";

    let payload = json!({"tags": json!({})});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/tags/:resourceArn \
  --header 'content-type: application/json' \
  --data '{
  "tags": {}
}'
echo '{
  "tags": {}
}' |  \
  http POST {{baseUrl}}/tags/:resourceArn \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "tags": {}\n}' \
  --output-document \
  - {{baseUrl}}/tags/:resourceArn
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["tags": []] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:resourceArn")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE UntagResource
{{baseUrl}}/tags/:resourceArn#tagKeys
QUERY PARAMS

tagKeys
resourceArn
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/tags/:resourceArn#tagKeys" {:query-params {:tagKeys ""}})
require "http/client"

url = "{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/tags/:resourceArn?tagKeys= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/tags/:resourceArn#tagKeys',
  params: {tagKeys: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tags/:resourceArn?tagKeys=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/tags/:resourceArn#tagKeys',
  qs: {tagKeys: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/tags/:resourceArn#tagKeys');

req.query({
  tagKeys: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/tags/:resourceArn#tagKeys',
  params: {tagKeys: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys');

echo $response->getBody();
setUrl('{{baseUrl}}/tags/:resourceArn#tagKeys');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'tagKeys' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/tags/:resourceArn#tagKeys');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'tagKeys' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/tags/:resourceArn?tagKeys=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/tags/:resourceArn#tagKeys"

querystring = {"tagKeys":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/tags/:resourceArn#tagKeys"

queryString <- list(tagKeys = "")

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/tags/:resourceArn') do |req|
  req.params['tagKeys'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/tags/:resourceArn#tagKeys";

    let querystring = [
        ("tagKeys", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys'
http DELETE '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys'
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:resourceArn?tagKeys=#tagKeys")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateApp
{{baseUrl}}/apps/:appId
QUERY PARAMS

appId
BODY json

{
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  },
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId" {:content-type :json
                                                        :form-params {:name ""
                                                                      :description ""
                                                                      :platform ""
                                                                      :iamServiceRoleArn ""
                                                                      :environmentVariables {}
                                                                      :enableBranchAutoBuild false
                                                                      :enableBranchAutoDeletion false
                                                                      :enableBasicAuth false
                                                                      :basicAuthCredentials ""
                                                                      :customRules [{:source ""
                                                                                     :target ""
                                                                                     :status ""
                                                                                     :condition ""}]
                                                                      :buildSpec ""
                                                                      :customHeaders ""
                                                                      :enableAutoBranchCreation false
                                                                      :autoBranchCreationPatterns []
                                                                      :autoBranchCreationConfig {:stage ""
                                                                                                 :framework ""
                                                                                                 :enableAutoBuild ""
                                                                                                 :environmentVariables ""
                                                                                                 :basicAuthCredentials ""
                                                                                                 :enableBasicAuth ""
                                                                                                 :enablePerformanceMode ""
                                                                                                 :buildSpec ""
                                                                                                 :enablePullRequestPreview ""
                                                                                                 :pullRequestEnvironmentName ""}
                                                                      :repository ""
                                                                      :oauthToken ""
                                                                      :accessToken ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 855

{
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  },
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  description: '',
  platform: '',
  iamServiceRoleArn: '',
  environmentVariables: {},
  enableBranchAutoBuild: false,
  enableBranchAutoDeletion: false,
  enableBasicAuth: false,
  basicAuthCredentials: '',
  customRules: [
    {
      source: '',
      target: '',
      status: '',
      condition: ''
    }
  ],
  buildSpec: '',
  customHeaders: '',
  enableAutoBranchCreation: false,
  autoBranchCreationPatterns: [],
  autoBranchCreationConfig: {
    stage: '',
    framework: '',
    enableAutoBuild: '',
    environmentVariables: '',
    basicAuthCredentials: '',
    enableBasicAuth: '',
    enablePerformanceMode: '',
    buildSpec: '',
    enablePullRequestPreview: '',
    pullRequestEnvironmentName: ''
  },
  repository: '',
  oauthToken: '',
  accessToken: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    description: '',
    platform: '',
    iamServiceRoleArn: '',
    environmentVariables: {},
    enableBranchAutoBuild: false,
    enableBranchAutoDeletion: false,
    enableBasicAuth: false,
    basicAuthCredentials: '',
    customRules: [{source: '', target: '', status: '', condition: ''}],
    buildSpec: '',
    customHeaders: '',
    enableAutoBranchCreation: false,
    autoBranchCreationPatterns: [],
    autoBranchCreationConfig: {
      stage: '',
      framework: '',
      enableAutoBuild: '',
      environmentVariables: '',
      basicAuthCredentials: '',
      enableBasicAuth: '',
      enablePerformanceMode: '',
      buildSpec: '',
      enablePullRequestPreview: '',
      pullRequestEnvironmentName: ''
    },
    repository: '',
    oauthToken: '',
    accessToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","description":"","platform":"","iamServiceRoleArn":"","environmentVariables":{},"enableBranchAutoBuild":false,"enableBranchAutoDeletion":false,"enableBasicAuth":false,"basicAuthCredentials":"","customRules":[{"source":"","target":"","status":"","condition":""}],"buildSpec":"","customHeaders":"","enableAutoBranchCreation":false,"autoBranchCreationPatterns":[],"autoBranchCreationConfig":{"stage":"","framework":"","enableAutoBuild":"","environmentVariables":"","basicAuthCredentials":"","enableBasicAuth":"","enablePerformanceMode":"","buildSpec":"","enablePullRequestPreview":"","pullRequestEnvironmentName":""},"repository":"","oauthToken":"","accessToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "description": "",\n  "platform": "",\n  "iamServiceRoleArn": "",\n  "environmentVariables": {},\n  "enableBranchAutoBuild": false,\n  "enableBranchAutoDeletion": false,\n  "enableBasicAuth": false,\n  "basicAuthCredentials": "",\n  "customRules": [\n    {\n      "source": "",\n      "target": "",\n      "status": "",\n      "condition": ""\n    }\n  ],\n  "buildSpec": "",\n  "customHeaders": "",\n  "enableAutoBranchCreation": false,\n  "autoBranchCreationPatterns": [],\n  "autoBranchCreationConfig": {\n    "stage": "",\n    "framework": "",\n    "enableAutoBuild": "",\n    "environmentVariables": "",\n    "basicAuthCredentials": "",\n    "enableBasicAuth": "",\n    "enablePerformanceMode": "",\n    "buildSpec": "",\n    "enablePullRequestPreview": "",\n    "pullRequestEnvironmentName": ""\n  },\n  "repository": "",\n  "oauthToken": "",\n  "accessToken": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  name: '',
  description: '',
  platform: '',
  iamServiceRoleArn: '',
  environmentVariables: {},
  enableBranchAutoBuild: false,
  enableBranchAutoDeletion: false,
  enableBasicAuth: false,
  basicAuthCredentials: '',
  customRules: [{source: '', target: '', status: '', condition: ''}],
  buildSpec: '',
  customHeaders: '',
  enableAutoBranchCreation: false,
  autoBranchCreationPatterns: [],
  autoBranchCreationConfig: {
    stage: '',
    framework: '',
    enableAutoBuild: '',
    environmentVariables: '',
    basicAuthCredentials: '',
    enableBasicAuth: '',
    enablePerformanceMode: '',
    buildSpec: '',
    enablePullRequestPreview: '',
    pullRequestEnvironmentName: ''
  },
  repository: '',
  oauthToken: '',
  accessToken: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId',
  headers: {'content-type': 'application/json'},
  body: {
    name: '',
    description: '',
    platform: '',
    iamServiceRoleArn: '',
    environmentVariables: {},
    enableBranchAutoBuild: false,
    enableBranchAutoDeletion: false,
    enableBasicAuth: false,
    basicAuthCredentials: '',
    customRules: [{source: '', target: '', status: '', condition: ''}],
    buildSpec: '',
    customHeaders: '',
    enableAutoBranchCreation: false,
    autoBranchCreationPatterns: [],
    autoBranchCreationConfig: {
      stage: '',
      framework: '',
      enableAutoBuild: '',
      environmentVariables: '',
      basicAuthCredentials: '',
      enableBasicAuth: '',
      enablePerformanceMode: '',
      buildSpec: '',
      enablePullRequestPreview: '',
      pullRequestEnvironmentName: ''
    },
    repository: '',
    oauthToken: '',
    accessToken: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  name: '',
  description: '',
  platform: '',
  iamServiceRoleArn: '',
  environmentVariables: {},
  enableBranchAutoBuild: false,
  enableBranchAutoDeletion: false,
  enableBasicAuth: false,
  basicAuthCredentials: '',
  customRules: [
    {
      source: '',
      target: '',
      status: '',
      condition: ''
    }
  ],
  buildSpec: '',
  customHeaders: '',
  enableAutoBranchCreation: false,
  autoBranchCreationPatterns: [],
  autoBranchCreationConfig: {
    stage: '',
    framework: '',
    enableAutoBuild: '',
    environmentVariables: '',
    basicAuthCredentials: '',
    enableBasicAuth: '',
    enablePerformanceMode: '',
    buildSpec: '',
    enablePullRequestPreview: '',
    pullRequestEnvironmentName: ''
  },
  repository: '',
  oauthToken: '',
  accessToken: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    description: '',
    platform: '',
    iamServiceRoleArn: '',
    environmentVariables: {},
    enableBranchAutoBuild: false,
    enableBranchAutoDeletion: false,
    enableBasicAuth: false,
    basicAuthCredentials: '',
    customRules: [{source: '', target: '', status: '', condition: ''}],
    buildSpec: '',
    customHeaders: '',
    enableAutoBranchCreation: false,
    autoBranchCreationPatterns: [],
    autoBranchCreationConfig: {
      stage: '',
      framework: '',
      enableAutoBuild: '',
      environmentVariables: '',
      basicAuthCredentials: '',
      enableBasicAuth: '',
      enablePerformanceMode: '',
      buildSpec: '',
      enablePullRequestPreview: '',
      pullRequestEnvironmentName: ''
    },
    repository: '',
    oauthToken: '',
    accessToken: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","description":"","platform":"","iamServiceRoleArn":"","environmentVariables":{},"enableBranchAutoBuild":false,"enableBranchAutoDeletion":false,"enableBasicAuth":false,"basicAuthCredentials":"","customRules":[{"source":"","target":"","status":"","condition":""}],"buildSpec":"","customHeaders":"","enableAutoBranchCreation":false,"autoBranchCreationPatterns":[],"autoBranchCreationConfig":{"stage":"","framework":"","enableAutoBuild":"","environmentVariables":"","basicAuthCredentials":"","enableBasicAuth":"","enablePerformanceMode":"","buildSpec":"","enablePullRequestPreview":"","pullRequestEnvironmentName":""},"repository":"","oauthToken":"","accessToken":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
                              @"description": @"",
                              @"platform": @"",
                              @"iamServiceRoleArn": @"",
                              @"environmentVariables": @{  },
                              @"enableBranchAutoBuild": @NO,
                              @"enableBranchAutoDeletion": @NO,
                              @"enableBasicAuth": @NO,
                              @"basicAuthCredentials": @"",
                              @"customRules": @[ @{ @"source": @"", @"target": @"", @"status": @"", @"condition": @"" } ],
                              @"buildSpec": @"",
                              @"customHeaders": @"",
                              @"enableAutoBranchCreation": @NO,
                              @"autoBranchCreationPatterns": @[  ],
                              @"autoBranchCreationConfig": @{ @"stage": @"", @"framework": @"", @"enableAutoBuild": @"", @"environmentVariables": @"", @"basicAuthCredentials": @"", @"enableBasicAuth": @"", @"enablePerformanceMode": @"", @"buildSpec": @"", @"enablePullRequestPreview": @"", @"pullRequestEnvironmentName": @"" },
                              @"repository": @"",
                              @"oauthToken": @"",
                              @"accessToken": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '',
    'description' => '',
    'platform' => '',
    'iamServiceRoleArn' => '',
    'environmentVariables' => [
        
    ],
    'enableBranchAutoBuild' => null,
    'enableBranchAutoDeletion' => null,
    'enableBasicAuth' => null,
    'basicAuthCredentials' => '',
    'customRules' => [
        [
                'source' => '',
                'target' => '',
                'status' => '',
                'condition' => ''
        ]
    ],
    'buildSpec' => '',
    'customHeaders' => '',
    'enableAutoBranchCreation' => null,
    'autoBranchCreationPatterns' => [
        
    ],
    'autoBranchCreationConfig' => [
        'stage' => '',
        'framework' => '',
        'enableAutoBuild' => '',
        'environmentVariables' => '',
        'basicAuthCredentials' => '',
        'enableBasicAuth' => '',
        'enablePerformanceMode' => '',
        'buildSpec' => '',
        'enablePullRequestPreview' => '',
        'pullRequestEnvironmentName' => ''
    ],
    'repository' => '',
    'oauthToken' => '',
    'accessToken' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId', [
  'body' => '{
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  },
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'description' => '',
  'platform' => '',
  'iamServiceRoleArn' => '',
  'environmentVariables' => [
    
  ],
  'enableBranchAutoBuild' => null,
  'enableBranchAutoDeletion' => null,
  'enableBasicAuth' => null,
  'basicAuthCredentials' => '',
  'customRules' => [
    [
        'source' => '',
        'target' => '',
        'status' => '',
        'condition' => ''
    ]
  ],
  'buildSpec' => '',
  'customHeaders' => '',
  'enableAutoBranchCreation' => null,
  'autoBranchCreationPatterns' => [
    
  ],
  'autoBranchCreationConfig' => [
    'stage' => '',
    'framework' => '',
    'enableAutoBuild' => '',
    'environmentVariables' => '',
    'basicAuthCredentials' => '',
    'enableBasicAuth' => '',
    'enablePerformanceMode' => '',
    'buildSpec' => '',
    'enablePullRequestPreview' => '',
    'pullRequestEnvironmentName' => ''
  ],
  'repository' => '',
  'oauthToken' => '',
  'accessToken' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'description' => '',
  'platform' => '',
  'iamServiceRoleArn' => '',
  'environmentVariables' => [
    
  ],
  'enableBranchAutoBuild' => null,
  'enableBranchAutoDeletion' => null,
  'enableBasicAuth' => null,
  'basicAuthCredentials' => '',
  'customRules' => [
    [
        'source' => '',
        'target' => '',
        'status' => '',
        'condition' => ''
    ]
  ],
  'buildSpec' => '',
  'customHeaders' => '',
  'enableAutoBranchCreation' => null,
  'autoBranchCreationPatterns' => [
    
  ],
  'autoBranchCreationConfig' => [
    'stage' => '',
    'framework' => '',
    'enableAutoBuild' => '',
    'environmentVariables' => '',
    'basicAuthCredentials' => '',
    'enableBasicAuth' => '',
    'enablePerformanceMode' => '',
    'buildSpec' => '',
    'enablePullRequestPreview' => '',
    'pullRequestEnvironmentName' => ''
  ],
  'repository' => '',
  'oauthToken' => '',
  'accessToken' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  },
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  },
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId"

payload = {
    "name": "",
    "description": "",
    "platform": "",
    "iamServiceRoleArn": "",
    "environmentVariables": {},
    "enableBranchAutoBuild": False,
    "enableBranchAutoDeletion": False,
    "enableBasicAuth": False,
    "basicAuthCredentials": "",
    "customRules": [
        {
            "source": "",
            "target": "",
            "status": "",
            "condition": ""
        }
    ],
    "buildSpec": "",
    "customHeaders": "",
    "enableAutoBranchCreation": False,
    "autoBranchCreationPatterns": [],
    "autoBranchCreationConfig": {
        "stage": "",
        "framework": "",
        "enableAutoBuild": "",
        "environmentVariables": "",
        "basicAuthCredentials": "",
        "enableBasicAuth": "",
        "enablePerformanceMode": "",
        "buildSpec": "",
        "enablePullRequestPreview": "",
        "pullRequestEnvironmentName": ""
    },
    "repository": "",
    "oauthToken": "",
    "accessToken": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId"

payload <- "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"description\": \"\",\n  \"platform\": \"\",\n  \"iamServiceRoleArn\": \"\",\n  \"environmentVariables\": {},\n  \"enableBranchAutoBuild\": false,\n  \"enableBranchAutoDeletion\": false,\n  \"enableBasicAuth\": false,\n  \"basicAuthCredentials\": \"\",\n  \"customRules\": [\n    {\n      \"source\": \"\",\n      \"target\": \"\",\n      \"status\": \"\",\n      \"condition\": \"\"\n    }\n  ],\n  \"buildSpec\": \"\",\n  \"customHeaders\": \"\",\n  \"enableAutoBranchCreation\": false,\n  \"autoBranchCreationPatterns\": [],\n  \"autoBranchCreationConfig\": {\n    \"stage\": \"\",\n    \"framework\": \"\",\n    \"enableAutoBuild\": \"\",\n    \"environmentVariables\": \"\",\n    \"basicAuthCredentials\": \"\",\n    \"enableBasicAuth\": \"\",\n    \"enablePerformanceMode\": \"\",\n    \"buildSpec\": \"\",\n    \"enablePullRequestPreview\": \"\",\n    \"pullRequestEnvironmentName\": \"\"\n  },\n  \"repository\": \"\",\n  \"oauthToken\": \"\",\n  \"accessToken\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId";

    let payload = json!({
        "name": "",
        "description": "",
        "platform": "",
        "iamServiceRoleArn": "",
        "environmentVariables": json!({}),
        "enableBranchAutoBuild": false,
        "enableBranchAutoDeletion": false,
        "enableBasicAuth": false,
        "basicAuthCredentials": "",
        "customRules": (
            json!({
                "source": "",
                "target": "",
                "status": "",
                "condition": ""
            })
        ),
        "buildSpec": "",
        "customHeaders": "",
        "enableAutoBranchCreation": false,
        "autoBranchCreationPatterns": (),
        "autoBranchCreationConfig": json!({
            "stage": "",
            "framework": "",
            "enableAutoBuild": "",
            "environmentVariables": "",
            "basicAuthCredentials": "",
            "enableBasicAuth": "",
            "enablePerformanceMode": "",
            "buildSpec": "",
            "enablePullRequestPreview": "",
            "pullRequestEnvironmentName": ""
        }),
        "repository": "",
        "oauthToken": "",
        "accessToken": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  },
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
}'
echo '{
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": {},
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    {
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    }
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": {
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  },
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "description": "",\n  "platform": "",\n  "iamServiceRoleArn": "",\n  "environmentVariables": {},\n  "enableBranchAutoBuild": false,\n  "enableBranchAutoDeletion": false,\n  "enableBasicAuth": false,\n  "basicAuthCredentials": "",\n  "customRules": [\n    {\n      "source": "",\n      "target": "",\n      "status": "",\n      "condition": ""\n    }\n  ],\n  "buildSpec": "",\n  "customHeaders": "",\n  "enableAutoBranchCreation": false,\n  "autoBranchCreationPatterns": [],\n  "autoBranchCreationConfig": {\n    "stage": "",\n    "framework": "",\n    "enableAutoBuild": "",\n    "environmentVariables": "",\n    "basicAuthCredentials": "",\n    "enableBasicAuth": "",\n    "enablePerformanceMode": "",\n    "buildSpec": "",\n    "enablePullRequestPreview": "",\n    "pullRequestEnvironmentName": ""\n  },\n  "repository": "",\n  "oauthToken": "",\n  "accessToken": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "description": "",
  "platform": "",
  "iamServiceRoleArn": "",
  "environmentVariables": [],
  "enableBranchAutoBuild": false,
  "enableBranchAutoDeletion": false,
  "enableBasicAuth": false,
  "basicAuthCredentials": "",
  "customRules": [
    [
      "source": "",
      "target": "",
      "status": "",
      "condition": ""
    ]
  ],
  "buildSpec": "",
  "customHeaders": "",
  "enableAutoBranchCreation": false,
  "autoBranchCreationPatterns": [],
  "autoBranchCreationConfig": [
    "stage": "",
    "framework": "",
    "enableAutoBuild": "",
    "environmentVariables": "",
    "basicAuthCredentials": "",
    "enableBasicAuth": "",
    "enablePerformanceMode": "",
    "buildSpec": "",
    "enablePullRequestPreview": "",
    "pullRequestEnvironmentName": ""
  ],
  "repository": "",
  "oauthToken": "",
  "accessToken": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateBranch
{{baseUrl}}/apps/:appId/branches/:branchName
QUERY PARAMS

appId
branchName
BODY json

{
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/branches/:branchName");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/branches/:branchName" {:content-type :json
                                                                             :form-params {:description ""
                                                                                           :framework ""
                                                                                           :stage ""
                                                                                           :enableNotification false
                                                                                           :enableAutoBuild false
                                                                                           :environmentVariables {}
                                                                                           :basicAuthCredentials ""
                                                                                           :enableBasicAuth false
                                                                                           :enablePerformanceMode false
                                                                                           :buildSpec ""
                                                                                           :ttl ""
                                                                                           :displayName ""
                                                                                           :enablePullRequestPreview false
                                                                                           :pullRequestEnvironmentName ""
                                                                                           :backendEnvironmentArn ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/branches/:branchName"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/branches/:branchName"),
    Content = new StringContent("{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/branches/:branchName");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/branches/:branchName"

	payload := strings.NewReader("{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/branches/:branchName HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 395

{
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/branches/:branchName")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/branches/:branchName"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/branches/:branchName")
  .header("content-type", "application/json")
  .body("{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  description: '',
  framework: '',
  stage: '',
  enableNotification: false,
  enableAutoBuild: false,
  environmentVariables: {},
  basicAuthCredentials: '',
  enableBasicAuth: false,
  enablePerformanceMode: false,
  buildSpec: '',
  ttl: '',
  displayName: '',
  enablePullRequestPreview: false,
  pullRequestEnvironmentName: '',
  backendEnvironmentArn: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/branches/:branchName');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName',
  headers: {'content-type': 'application/json'},
  data: {
    description: '',
    framework: '',
    stage: '',
    enableNotification: false,
    enableAutoBuild: false,
    environmentVariables: {},
    basicAuthCredentials: '',
    enableBasicAuth: false,
    enablePerformanceMode: false,
    buildSpec: '',
    ttl: '',
    displayName: '',
    enablePullRequestPreview: false,
    pullRequestEnvironmentName: '',
    backendEnvironmentArn: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/branches/:branchName';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","framework":"","stage":"","enableNotification":false,"enableAutoBuild":false,"environmentVariables":{},"basicAuthCredentials":"","enableBasicAuth":false,"enablePerformanceMode":false,"buildSpec":"","ttl":"","displayName":"","enablePullRequestPreview":false,"pullRequestEnvironmentName":"","backendEnvironmentArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/branches/:branchName',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "description": "",\n  "framework": "",\n  "stage": "",\n  "enableNotification": false,\n  "enableAutoBuild": false,\n  "environmentVariables": {},\n  "basicAuthCredentials": "",\n  "enableBasicAuth": false,\n  "enablePerformanceMode": false,\n  "buildSpec": "",\n  "ttl": "",\n  "displayName": "",\n  "enablePullRequestPreview": false,\n  "pullRequestEnvironmentName": "",\n  "backendEnvironmentArn": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/branches/:branchName")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/branches/:branchName',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  description: '',
  framework: '',
  stage: '',
  enableNotification: false,
  enableAutoBuild: false,
  environmentVariables: {},
  basicAuthCredentials: '',
  enableBasicAuth: false,
  enablePerformanceMode: false,
  buildSpec: '',
  ttl: '',
  displayName: '',
  enablePullRequestPreview: false,
  pullRequestEnvironmentName: '',
  backendEnvironmentArn: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName',
  headers: {'content-type': 'application/json'},
  body: {
    description: '',
    framework: '',
    stage: '',
    enableNotification: false,
    enableAutoBuild: false,
    environmentVariables: {},
    basicAuthCredentials: '',
    enableBasicAuth: false,
    enablePerformanceMode: false,
    buildSpec: '',
    ttl: '',
    displayName: '',
    enablePullRequestPreview: false,
    pullRequestEnvironmentName: '',
    backendEnvironmentArn: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/branches/:branchName');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  description: '',
  framework: '',
  stage: '',
  enableNotification: false,
  enableAutoBuild: false,
  environmentVariables: {},
  basicAuthCredentials: '',
  enableBasicAuth: false,
  enablePerformanceMode: false,
  buildSpec: '',
  ttl: '',
  displayName: '',
  enablePullRequestPreview: false,
  pullRequestEnvironmentName: '',
  backendEnvironmentArn: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/branches/:branchName',
  headers: {'content-type': 'application/json'},
  data: {
    description: '',
    framework: '',
    stage: '',
    enableNotification: false,
    enableAutoBuild: false,
    environmentVariables: {},
    basicAuthCredentials: '',
    enableBasicAuth: false,
    enablePerformanceMode: false,
    buildSpec: '',
    ttl: '',
    displayName: '',
    enablePullRequestPreview: false,
    pullRequestEnvironmentName: '',
    backendEnvironmentArn: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/branches/:branchName';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","framework":"","stage":"","enableNotification":false,"enableAutoBuild":false,"environmentVariables":{},"basicAuthCredentials":"","enableBasicAuth":false,"enablePerformanceMode":false,"buildSpec":"","ttl":"","displayName":"","enablePullRequestPreview":false,"pullRequestEnvironmentName":"","backendEnvironmentArn":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"description": @"",
                              @"framework": @"",
                              @"stage": @"",
                              @"enableNotification": @NO,
                              @"enableAutoBuild": @NO,
                              @"environmentVariables": @{  },
                              @"basicAuthCredentials": @"",
                              @"enableBasicAuth": @NO,
                              @"enablePerformanceMode": @NO,
                              @"buildSpec": @"",
                              @"ttl": @"",
                              @"displayName": @"",
                              @"enablePullRequestPreview": @NO,
                              @"pullRequestEnvironmentName": @"",
                              @"backendEnvironmentArn": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/branches/:branchName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/branches/:branchName" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/branches/:branchName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'description' => '',
    'framework' => '',
    'stage' => '',
    'enableNotification' => null,
    'enableAutoBuild' => null,
    'environmentVariables' => [
        
    ],
    'basicAuthCredentials' => '',
    'enableBasicAuth' => null,
    'enablePerformanceMode' => null,
    'buildSpec' => '',
    'ttl' => '',
    'displayName' => '',
    'enablePullRequestPreview' => null,
    'pullRequestEnvironmentName' => '',
    'backendEnvironmentArn' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/branches/:branchName', [
  'body' => '{
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/branches/:branchName');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'description' => '',
  'framework' => '',
  'stage' => '',
  'enableNotification' => null,
  'enableAutoBuild' => null,
  'environmentVariables' => [
    
  ],
  'basicAuthCredentials' => '',
  'enableBasicAuth' => null,
  'enablePerformanceMode' => null,
  'buildSpec' => '',
  'ttl' => '',
  'displayName' => '',
  'enablePullRequestPreview' => null,
  'pullRequestEnvironmentName' => '',
  'backendEnvironmentArn' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => '',
  'framework' => '',
  'stage' => '',
  'enableNotification' => null,
  'enableAutoBuild' => null,
  'environmentVariables' => [
    
  ],
  'basicAuthCredentials' => '',
  'enableBasicAuth' => null,
  'enablePerformanceMode' => null,
  'buildSpec' => '',
  'ttl' => '',
  'displayName' => '',
  'enablePullRequestPreview' => null,
  'pullRequestEnvironmentName' => '',
  'backendEnvironmentArn' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/branches/:branchName');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/branches/:branchName' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/branches/:branchName' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/branches/:branchName", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/branches/:branchName"

payload = {
    "description": "",
    "framework": "",
    "stage": "",
    "enableNotification": False,
    "enableAutoBuild": False,
    "environmentVariables": {},
    "basicAuthCredentials": "",
    "enableBasicAuth": False,
    "enablePerformanceMode": False,
    "buildSpec": "",
    "ttl": "",
    "displayName": "",
    "enablePullRequestPreview": False,
    "pullRequestEnvironmentName": "",
    "backendEnvironmentArn": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/branches/:branchName"

payload <- "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/branches/:branchName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/branches/:branchName') do |req|
  req.body = "{\n  \"description\": \"\",\n  \"framework\": \"\",\n  \"stage\": \"\",\n  \"enableNotification\": false,\n  \"enableAutoBuild\": false,\n  \"environmentVariables\": {},\n  \"basicAuthCredentials\": \"\",\n  \"enableBasicAuth\": false,\n  \"enablePerformanceMode\": false,\n  \"buildSpec\": \"\",\n  \"ttl\": \"\",\n  \"displayName\": \"\",\n  \"enablePullRequestPreview\": false,\n  \"pullRequestEnvironmentName\": \"\",\n  \"backendEnvironmentArn\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/branches/:branchName";

    let payload = json!({
        "description": "",
        "framework": "",
        "stage": "",
        "enableNotification": false,
        "enableAutoBuild": false,
        "environmentVariables": json!({}),
        "basicAuthCredentials": "",
        "enableBasicAuth": false,
        "enablePerformanceMode": false,
        "buildSpec": "",
        "ttl": "",
        "displayName": "",
        "enablePullRequestPreview": false,
        "pullRequestEnvironmentName": "",
        "backendEnvironmentArn": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/branches/:branchName \
  --header 'content-type: application/json' \
  --data '{
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}'
echo '{
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": {},
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/branches/:branchName \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "description": "",\n  "framework": "",\n  "stage": "",\n  "enableNotification": false,\n  "enableAutoBuild": false,\n  "environmentVariables": {},\n  "basicAuthCredentials": "",\n  "enableBasicAuth": false,\n  "enablePerformanceMode": false,\n  "buildSpec": "",\n  "ttl": "",\n  "displayName": "",\n  "enablePullRequestPreview": false,\n  "pullRequestEnvironmentName": "",\n  "backendEnvironmentArn": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/branches/:branchName
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "description": "",
  "framework": "",
  "stage": "",
  "enableNotification": false,
  "enableAutoBuild": false,
  "environmentVariables": [],
  "basicAuthCredentials": "",
  "enableBasicAuth": false,
  "enablePerformanceMode": false,
  "buildSpec": "",
  "ttl": "",
  "displayName": "",
  "enablePullRequestPreview": false,
  "pullRequestEnvironmentName": "",
  "backendEnvironmentArn": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/branches/:branchName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateDomainAssociation
{{baseUrl}}/apps/:appId/domains/:domainName
QUERY PARAMS

appId
domainName
BODY json

{
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/apps/:appId/domains/:domainName");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/apps/:appId/domains/:domainName" {:content-type :json
                                                                            :form-params {:enableAutoSubDomain false
                                                                                          :subDomainSettings [{:prefix ""
                                                                                                               :branchName ""}]
                                                                                          :autoSubDomainCreationPatterns []
                                                                                          :autoSubDomainIAMRole ""}})
require "http/client"

url = "{{baseUrl}}/apps/:appId/domains/:domainName"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/apps/:appId/domains/:domainName"),
    Content = new StringContent("{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/apps/:appId/domains/:domainName");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/apps/:appId/domains/:domainName"

	payload := strings.NewReader("{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/apps/:appId/domains/:domainName HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 188

{
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/apps/:appId/domains/:domainName")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/apps/:appId/domains/:domainName"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains/:domainName")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/apps/:appId/domains/:domainName")
  .header("content-type", "application/json")
  .body("{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  enableAutoSubDomain: false,
  subDomainSettings: [
    {
      prefix: '',
      branchName: ''
    }
  ],
  autoSubDomainCreationPatterns: [],
  autoSubDomainIAMRole: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/apps/:appId/domains/:domainName');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName',
  headers: {'content-type': 'application/json'},
  data: {
    enableAutoSubDomain: false,
    subDomainSettings: [{prefix: '', branchName: ''}],
    autoSubDomainCreationPatterns: [],
    autoSubDomainIAMRole: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/apps/:appId/domains/:domainName';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"enableAutoSubDomain":false,"subDomainSettings":[{"prefix":"","branchName":""}],"autoSubDomainCreationPatterns":[],"autoSubDomainIAMRole":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/apps/:appId/domains/:domainName',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enableAutoSubDomain": false,\n  "subDomainSettings": [\n    {\n      "prefix": "",\n      "branchName": ""\n    }\n  ],\n  "autoSubDomainCreationPatterns": [],\n  "autoSubDomainIAMRole": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/apps/:appId/domains/:domainName")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/apps/:appId/domains/:domainName',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  enableAutoSubDomain: false,
  subDomainSettings: [{prefix: '', branchName: ''}],
  autoSubDomainCreationPatterns: [],
  autoSubDomainIAMRole: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName',
  headers: {'content-type': 'application/json'},
  body: {
    enableAutoSubDomain: false,
    subDomainSettings: [{prefix: '', branchName: ''}],
    autoSubDomainCreationPatterns: [],
    autoSubDomainIAMRole: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/apps/:appId/domains/:domainName');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enableAutoSubDomain: false,
  subDomainSettings: [
    {
      prefix: '',
      branchName: ''
    }
  ],
  autoSubDomainCreationPatterns: [],
  autoSubDomainIAMRole: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/apps/:appId/domains/:domainName',
  headers: {'content-type': 'application/json'},
  data: {
    enableAutoSubDomain: false,
    subDomainSettings: [{prefix: '', branchName: ''}],
    autoSubDomainCreationPatterns: [],
    autoSubDomainIAMRole: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/apps/:appId/domains/:domainName';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"enableAutoSubDomain":false,"subDomainSettings":[{"prefix":"","branchName":""}],"autoSubDomainCreationPatterns":[],"autoSubDomainIAMRole":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"enableAutoSubDomain": @NO,
                              @"subDomainSettings": @[ @{ @"prefix": @"", @"branchName": @"" } ],
                              @"autoSubDomainCreationPatterns": @[  ],
                              @"autoSubDomainIAMRole": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/apps/:appId/domains/:domainName"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/apps/:appId/domains/:domainName" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/apps/:appId/domains/:domainName",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'enableAutoSubDomain' => null,
    'subDomainSettings' => [
        [
                'prefix' => '',
                'branchName' => ''
        ]
    ],
    'autoSubDomainCreationPatterns' => [
        
    ],
    'autoSubDomainIAMRole' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/apps/:appId/domains/:domainName', [
  'body' => '{
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/apps/:appId/domains/:domainName');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enableAutoSubDomain' => null,
  'subDomainSettings' => [
    [
        'prefix' => '',
        'branchName' => ''
    ]
  ],
  'autoSubDomainCreationPatterns' => [
    
  ],
  'autoSubDomainIAMRole' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enableAutoSubDomain' => null,
  'subDomainSettings' => [
    [
        'prefix' => '',
        'branchName' => ''
    ]
  ],
  'autoSubDomainCreationPatterns' => [
    
  ],
  'autoSubDomainIAMRole' => ''
]));
$request->setRequestUrl('{{baseUrl}}/apps/:appId/domains/:domainName');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/apps/:appId/domains/:domainName' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/apps/:appId/domains/:domainName' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/apps/:appId/domains/:domainName", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/apps/:appId/domains/:domainName"

payload = {
    "enableAutoSubDomain": False,
    "subDomainSettings": [
        {
            "prefix": "",
            "branchName": ""
        }
    ],
    "autoSubDomainCreationPatterns": [],
    "autoSubDomainIAMRole": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/apps/:appId/domains/:domainName"

payload <- "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/apps/:appId/domains/:domainName")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/apps/:appId/domains/:domainName') do |req|
  req.body = "{\n  \"enableAutoSubDomain\": false,\n  \"subDomainSettings\": [\n    {\n      \"prefix\": \"\",\n      \"branchName\": \"\"\n    }\n  ],\n  \"autoSubDomainCreationPatterns\": [],\n  \"autoSubDomainIAMRole\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/apps/:appId/domains/:domainName";

    let payload = json!({
        "enableAutoSubDomain": false,
        "subDomainSettings": (
            json!({
                "prefix": "",
                "branchName": ""
            })
        ),
        "autoSubDomainCreationPatterns": (),
        "autoSubDomainIAMRole": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/apps/:appId/domains/:domainName \
  --header 'content-type: application/json' \
  --data '{
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}'
echo '{
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    {
      "prefix": "",
      "branchName": ""
    }
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
}' |  \
  http POST {{baseUrl}}/apps/:appId/domains/:domainName \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "enableAutoSubDomain": false,\n  "subDomainSettings": [\n    {\n      "prefix": "",\n      "branchName": ""\n    }\n  ],\n  "autoSubDomainCreationPatterns": [],\n  "autoSubDomainIAMRole": ""\n}' \
  --output-document \
  - {{baseUrl}}/apps/:appId/domains/:domainName
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enableAutoSubDomain": false,
  "subDomainSettings": [
    [
      "prefix": "",
      "branchName": ""
    ]
  ],
  "autoSubDomainCreationPatterns": [],
  "autoSubDomainIAMRole": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/apps/:appId/domains/:domainName")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST UpdateWebhook
{{baseUrl}}/webhooks/:webhookId
QUERY PARAMS

webhookId
BODY json

{
  "branchName": "",
  "description": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/webhooks/:webhookId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/webhooks/:webhookId" {:content-type :json
                                                                :form-params {:branchName ""
                                                                              :description ""}})
require "http/client"

url = "{{baseUrl}}/webhooks/:webhookId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/webhooks/:webhookId"),
    Content = new StringContent("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/webhooks/:webhookId");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/webhooks/:webhookId"

	payload := strings.NewReader("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/webhooks/:webhookId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 43

{
  "branchName": "",
  "description": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/webhooks/:webhookId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/webhooks/:webhookId"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/webhooks/:webhookId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/webhooks/:webhookId")
  .header("content-type", "application/json")
  .body("{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  branchName: '',
  description: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/webhooks/:webhookId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/webhooks/:webhookId',
  headers: {'content-type': 'application/json'},
  data: {branchName: '', description: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/webhooks/:webhookId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"branchName":"","description":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/webhooks/:webhookId',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "branchName": "",\n  "description": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/webhooks/:webhookId")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/webhooks/:webhookId',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({branchName: '', description: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/webhooks/:webhookId',
  headers: {'content-type': 'application/json'},
  body: {branchName: '', description: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/webhooks/:webhookId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  branchName: '',
  description: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/webhooks/:webhookId',
  headers: {'content-type': 'application/json'},
  data: {branchName: '', description: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/webhooks/:webhookId';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"branchName":"","description":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"branchName": @"",
                              @"description": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/webhooks/:webhookId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/webhooks/:webhookId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/webhooks/:webhookId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'branchName' => '',
    'description' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/webhooks/:webhookId', [
  'body' => '{
  "branchName": "",
  "description": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/webhooks/:webhookId');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'branchName' => '',
  'description' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'branchName' => '',
  'description' => ''
]));
$request->setRequestUrl('{{baseUrl}}/webhooks/:webhookId');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/webhooks/:webhookId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "branchName": "",
  "description": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/webhooks/:webhookId' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "branchName": "",
  "description": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/webhooks/:webhookId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/webhooks/:webhookId"

payload = {
    "branchName": "",
    "description": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/webhooks/:webhookId"

payload <- "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/webhooks/:webhookId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/webhooks/:webhookId') do |req|
  req.body = "{\n  \"branchName\": \"\",\n  \"description\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/webhooks/:webhookId";

    let payload = json!({
        "branchName": "",
        "description": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/webhooks/:webhookId \
  --header 'content-type: application/json' \
  --data '{
  "branchName": "",
  "description": ""
}'
echo '{
  "branchName": "",
  "description": ""
}' |  \
  http POST {{baseUrl}}/webhooks/:webhookId \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "branchName": "",\n  "description": ""\n}' \
  --output-document \
  - {{baseUrl}}/webhooks/:webhookId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "branchName": "",
  "description": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/webhooks/:webhookId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()