PUT ConfigureLogs
{{baseUrl}}/channels/:id/configure_logs
QUERY PARAMS

id
BODY json

{
  "egressAccessLogs": {
    "LogGroupName": ""
  },
  "ingressAccessLogs": {
    "LogGroupName": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels/:id/configure_logs");

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  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}");

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

(client/put "{{baseUrl}}/channels/:id/configure_logs" {:content-type :json
                                                                       :form-params {:egressAccessLogs {:LogGroupName ""}
                                                                                     :ingressAccessLogs {:LogGroupName ""}}})
require "http/client"

url = "{{baseUrl}}/channels/:id/configure_logs"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/channels/:id/configure_logs"),
    Content = new StringContent("{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\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}}/channels/:id/configure_logs");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/channels/:id/configure_logs"

	payload := strings.NewReader("{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/channels/:id/configure_logs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 107

{
  "egressAccessLogs": {
    "LogGroupName": ""
  },
  "ingressAccessLogs": {
    "LogGroupName": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/channels/:id/configure_logs")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels/:id/configure_logs"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\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  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/channels/:id/configure_logs")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/channels/:id/configure_logs")
  .header("content-type", "application/json")
  .body("{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  egressAccessLogs: {
    LogGroupName: ''
  },
  ingressAccessLogs: {
    LogGroupName: ''
  }
});

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

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

xhr.open('PUT', '{{baseUrl}}/channels/:id/configure_logs');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/channels/:id/configure_logs',
  headers: {'content-type': 'application/json'},
  data: {egressAccessLogs: {LogGroupName: ''}, ingressAccessLogs: {LogGroupName: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels/:id/configure_logs';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"egressAccessLogs":{"LogGroupName":""},"ingressAccessLogs":{"LogGroupName":""}}'
};

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}}/channels/:id/configure_logs',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "egressAccessLogs": {\n    "LogGroupName": ""\n  },\n  "ingressAccessLogs": {\n    "LogGroupName": ""\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  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/channels/:id/configure_logs")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/channels/:id/configure_logs',
  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({egressAccessLogs: {LogGroupName: ''}, ingressAccessLogs: {LogGroupName: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/channels/:id/configure_logs',
  headers: {'content-type': 'application/json'},
  body: {egressAccessLogs: {LogGroupName: ''}, ingressAccessLogs: {LogGroupName: ''}},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/channels/:id/configure_logs');

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

req.type('json');
req.send({
  egressAccessLogs: {
    LogGroupName: ''
  },
  ingressAccessLogs: {
    LogGroupName: ''
  }
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/channels/:id/configure_logs',
  headers: {'content-type': 'application/json'},
  data: {egressAccessLogs: {LogGroupName: ''}, ingressAccessLogs: {LogGroupName: ''}}
};

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

const url = '{{baseUrl}}/channels/:id/configure_logs';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"egressAccessLogs":{"LogGroupName":""},"ingressAccessLogs":{"LogGroupName":""}}'
};

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 = @{ @"egressAccessLogs": @{ @"LogGroupName": @"" },
                              @"ingressAccessLogs": @{ @"LogGroupName": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/channels/:id/configure_logs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/channels/:id/configure_logs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/channels/:id/configure_logs",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'egressAccessLogs' => [
        'LogGroupName' => ''
    ],
    'ingressAccessLogs' => [
        'LogGroupName' => ''
    ]
  ]),
  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('PUT', '{{baseUrl}}/channels/:id/configure_logs', [
  'body' => '{
  "egressAccessLogs": {
    "LogGroupName": ""
  },
  "ingressAccessLogs": {
    "LogGroupName": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/channels/:id/configure_logs');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'egressAccessLogs' => [
    'LogGroupName' => ''
  ],
  'ingressAccessLogs' => [
    'LogGroupName' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'egressAccessLogs' => [
    'LogGroupName' => ''
  ],
  'ingressAccessLogs' => [
    'LogGroupName' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/channels/:id/configure_logs');
$request->setRequestMethod('PUT');
$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}}/channels/:id/configure_logs' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "egressAccessLogs": {
    "LogGroupName": ""
  },
  "ingressAccessLogs": {
    "LogGroupName": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/channels/:id/configure_logs' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "egressAccessLogs": {
    "LogGroupName": ""
  },
  "ingressAccessLogs": {
    "LogGroupName": ""
  }
}'
import http.client

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

payload = "{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}"

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

conn.request("PUT", "/baseUrl/channels/:id/configure_logs", payload, headers)

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

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

url = "{{baseUrl}}/channels/:id/configure_logs"

payload = {
    "egressAccessLogs": { "LogGroupName": "" },
    "ingressAccessLogs": { "LogGroupName": "" }
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/channels/:id/configure_logs"

payload <- "{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/channels/:id/configure_logs")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\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.put('/baseUrl/channels/:id/configure_logs') do |req|
  req.body = "{\n  \"egressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  },\n  \"ingressAccessLogs\": {\n    \"LogGroupName\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "egressAccessLogs": json!({"LogGroupName": ""}),
        "ingressAccessLogs": json!({"LogGroupName": ""})
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/channels/:id/configure_logs \
  --header 'content-type: application/json' \
  --data '{
  "egressAccessLogs": {
    "LogGroupName": ""
  },
  "ingressAccessLogs": {
    "LogGroupName": ""
  }
}'
echo '{
  "egressAccessLogs": {
    "LogGroupName": ""
  },
  "ingressAccessLogs": {
    "LogGroupName": ""
  }
}' |  \
  http PUT {{baseUrl}}/channels/:id/configure_logs \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "egressAccessLogs": {\n    "LogGroupName": ""\n  },\n  "ingressAccessLogs": {\n    "LogGroupName": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/channels/:id/configure_logs
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "egressAccessLogs": ["LogGroupName": ""],
  "ingressAccessLogs": ["LogGroupName": ""]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels/:id/configure_logs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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 CreateChannel
{{baseUrl}}/channels
BODY json

{
  "description": "",
  "id": "",
  "tags": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"id\": \"\",\n  \"tags\": {}\n}");

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

(client/post "{{baseUrl}}/channels" {:content-type :json
                                                     :form-params {:description ""
                                                                   :id ""
                                                                   :tags {}}})
require "http/client"

url = "{{baseUrl}}/channels"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"description\": \"\",\n  \"id\": \"\",\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}}/channels"),
    Content = new StringContent("{\n  \"description\": \"\",\n  \"id\": \"\",\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}}/channels");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"\",\n  \"id\": \"\",\n  \"tags\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"description\": \"\",\n  \"id\": \"\",\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/channels HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 49

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"\",\n  \"id\": \"\",\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  \"description\": \"\",\n  \"id\": \"\",\n  \"tags\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/channels")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/channels")
  .header("content-type", "application/json")
  .body("{\n  \"description\": \"\",\n  \"id\": \"\",\n  \"tags\": {}\n}")
  .asString();
const data = JSON.stringify({
  description: '',
  id: '',
  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}}/channels');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/channels',
  headers: {'content-type': 'application/json'},
  data: {description: '', id: '', tags: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","id":"","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}}/channels',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "description": "",\n  "id": "",\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  \"description\": \"\",\n  \"id\": \"\",\n  \"tags\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/channels")
  .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/channels',
  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: '', id: '', tags: {}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/channels',
  headers: {'content-type': 'application/json'},
  body: {description: '', id: '', 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}}/channels');

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

req.type('json');
req.send({
  description: '',
  id: '',
  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}}/channels',
  headers: {'content-type': 'application/json'},
  data: {description: '', id: '', tags: {}}
};

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

const url = '{{baseUrl}}/channels';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"description":"","id":"","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 = @{ @"description": @"",
                              @"id": @"",
                              @"tags": @{  } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/channels"]
                                                       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}}/channels" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\",\n  \"id\": \"\",\n  \"tags\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/channels",
  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' => '',
    'id' => '',
    '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}}/channels', [
  'body' => '{
  "description": "",
  "id": "",
  "tags": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => '',
  'id' => '',
  'tags' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/channels');
$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}}/channels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "id": "",
  "tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/channels' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "description": "",
  "id": "",
  "tags": {}
}'
import http.client

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

payload = "{\n  \"description\": \"\",\n  \"id\": \"\",\n  \"tags\": {}\n}"

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

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

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

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

url = "{{baseUrl}}/channels"

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

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

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

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

payload <- "{\n  \"description\": \"\",\n  \"id\": \"\",\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}}/channels")

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  \"id\": \"\",\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/channels') do |req|
  req.body = "{\n  \"description\": \"\",\n  \"id\": \"\",\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}}/channels";

    let payload = json!({
        "description": "",
        "id": "",
        "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}}/channels \
  --header 'content-type: application/json' \
  --data '{
  "description": "",
  "id": "",
  "tags": {}
}'
echo '{
  "description": "",
  "id": "",
  "tags": {}
}' |  \
  http POST {{baseUrl}}/channels \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "description": "",\n  "id": "",\n  "tags": {}\n}' \
  --output-document \
  - {{baseUrl}}/channels
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels")! 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 CreateHarvestJob
{{baseUrl}}/harvest_jobs
BODY json

{
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": {
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  },
  "startTime": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/harvest_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  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}");

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

(client/post "{{baseUrl}}/harvest_jobs" {:content-type :json
                                                         :form-params {:endTime ""
                                                                       :id ""
                                                                       :originEndpointId ""
                                                                       :s3Destination {:BucketName ""
                                                                                       :ManifestKey ""
                                                                                       :RoleArn ""}
                                                                       :startTime ""}})
require "http/client"

url = "{{baseUrl}}/harvest_jobs"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\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}}/harvest_jobs"),
    Content = new StringContent("{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\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}}/harvest_jobs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\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/harvest_jobs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 165

{
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": {
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  },
  "startTime": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/harvest_jobs")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/harvest_jobs"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\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  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/harvest_jobs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/harvest_jobs")
  .header("content-type", "application/json")
  .body("{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  endTime: '',
  id: '',
  originEndpointId: '',
  s3Destination: {
    BucketName: '',
    ManifestKey: '',
    RoleArn: ''
  },
  startTime: ''
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/harvest_jobs',
  headers: {'content-type': 'application/json'},
  data: {
    endTime: '',
    id: '',
    originEndpointId: '',
    s3Destination: {BucketName: '', ManifestKey: '', RoleArn: ''},
    startTime: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/harvest_jobs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"endTime":"","id":"","originEndpointId":"","s3Destination":{"BucketName":"","ManifestKey":"","RoleArn":""},"startTime":""}'
};

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}}/harvest_jobs',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "endTime": "",\n  "id": "",\n  "originEndpointId": "",\n  "s3Destination": {\n    "BucketName": "",\n    "ManifestKey": "",\n    "RoleArn": ""\n  },\n  "startTime": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/harvest_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/harvest_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({
  endTime: '',
  id: '',
  originEndpointId: '',
  s3Destination: {BucketName: '', ManifestKey: '', RoleArn: ''},
  startTime: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/harvest_jobs',
  headers: {'content-type': 'application/json'},
  body: {
    endTime: '',
    id: '',
    originEndpointId: '',
    s3Destination: {BucketName: '', ManifestKey: '', RoleArn: ''},
    startTime: ''
  },
  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}}/harvest_jobs');

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

req.type('json');
req.send({
  endTime: '',
  id: '',
  originEndpointId: '',
  s3Destination: {
    BucketName: '',
    ManifestKey: '',
    RoleArn: ''
  },
  startTime: ''
});

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}}/harvest_jobs',
  headers: {'content-type': 'application/json'},
  data: {
    endTime: '',
    id: '',
    originEndpointId: '',
    s3Destination: {BucketName: '', ManifestKey: '', RoleArn: ''},
    startTime: ''
  }
};

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

const url = '{{baseUrl}}/harvest_jobs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"endTime":"","id":"","originEndpointId":"","s3Destination":{"BucketName":"","ManifestKey":"","RoleArn":""},"startTime":""}'
};

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 = @{ @"endTime": @"",
                              @"id": @"",
                              @"originEndpointId": @"",
                              @"s3Destination": @{ @"BucketName": @"", @"ManifestKey": @"", @"RoleArn": @"" },
                              @"startTime": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/harvest_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}}/harvest_jobs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/harvest_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([
    'endTime' => '',
    'id' => '',
    'originEndpointId' => '',
    's3Destination' => [
        'BucketName' => '',
        'ManifestKey' => '',
        'RoleArn' => ''
    ],
    'startTime' => ''
  ]),
  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}}/harvest_jobs', [
  'body' => '{
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": {
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  },
  "startTime": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'endTime' => '',
  'id' => '',
  'originEndpointId' => '',
  's3Destination' => [
    'BucketName' => '',
    'ManifestKey' => '',
    'RoleArn' => ''
  ],
  'startTime' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'endTime' => '',
  'id' => '',
  'originEndpointId' => '',
  's3Destination' => [
    'BucketName' => '',
    'ManifestKey' => '',
    'RoleArn' => ''
  ],
  'startTime' => ''
]));
$request->setRequestUrl('{{baseUrl}}/harvest_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}}/harvest_jobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": {
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  },
  "startTime": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/harvest_jobs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": {
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  },
  "startTime": ""
}'
import http.client

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

payload = "{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}"

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

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

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

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

url = "{{baseUrl}}/harvest_jobs"

payload = {
    "endTime": "",
    "id": "",
    "originEndpointId": "",
    "s3Destination": {
        "BucketName": "",
        "ManifestKey": "",
        "RoleArn": ""
    },
    "startTime": ""
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\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}}/harvest_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  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\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/harvest_jobs') do |req|
  req.body = "{\n  \"endTime\": \"\",\n  \"id\": \"\",\n  \"originEndpointId\": \"\",\n  \"s3Destination\": {\n    \"BucketName\": \"\",\n    \"ManifestKey\": \"\",\n    \"RoleArn\": \"\"\n  },\n  \"startTime\": \"\"\n}"
end

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

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

    let payload = json!({
        "endTime": "",
        "id": "",
        "originEndpointId": "",
        "s3Destination": json!({
            "BucketName": "",
            "ManifestKey": "",
            "RoleArn": ""
        }),
        "startTime": ""
    });

    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}}/harvest_jobs \
  --header 'content-type: application/json' \
  --data '{
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": {
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  },
  "startTime": ""
}'
echo '{
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": {
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  },
  "startTime": ""
}' |  \
  http POST {{baseUrl}}/harvest_jobs \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "endTime": "",\n  "id": "",\n  "originEndpointId": "",\n  "s3Destination": {\n    "BucketName": "",\n    "ManifestKey": "",\n    "RoleArn": ""\n  },\n  "startTime": ""\n}' \
  --output-document \
  - {{baseUrl}}/harvest_jobs
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "endTime": "",
  "id": "",
  "originEndpointId": "",
  "s3Destination": [
    "BucketName": "",
    "ManifestKey": "",
    "RoleArn": ""
  ],
  "startTime": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/harvest_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()
POST CreateOriginEndpoint
{{baseUrl}}/origin_endpoints
BODY json

{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "channelId": "",
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "id": "",
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": {},
  "timeDelaySeconds": 0,
  "whitelist": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}");

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

(client/post "{{baseUrl}}/origin_endpoints" {:content-type :json
                                                             :form-params {:authorization {:CdnIdentifierSecret ""
                                                                                           :SecretsRoleArn ""}
                                                                           :channelId ""
                                                                           :cmafPackage {:Encryption ""
                                                                                         :HlsManifests ""
                                                                                         :SegmentDurationSeconds ""
                                                                                         :SegmentPrefix ""
                                                                                         :StreamSelection ""}
                                                                           :dashPackage {:AdTriggers ""
                                                                                         :AdsOnDeliveryRestrictions ""
                                                                                         :Encryption ""
                                                                                         :IncludeIframeOnlyStream ""
                                                                                         :ManifestLayout ""
                                                                                         :ManifestWindowSeconds ""
                                                                                         :MinBufferTimeSeconds ""
                                                                                         :MinUpdatePeriodSeconds ""
                                                                                         :PeriodTriggers ""
                                                                                         :Profile ""
                                                                                         :SegmentDurationSeconds ""
                                                                                         :SegmentTemplateFormat ""
                                                                                         :StreamSelection ""
                                                                                         :SuggestedPresentationDelaySeconds ""
                                                                                         :UtcTiming ""
                                                                                         :UtcTimingUri ""}
                                                                           :description ""
                                                                           :hlsPackage {:AdMarkers ""
                                                                                        :AdTriggers ""
                                                                                        :AdsOnDeliveryRestrictions ""
                                                                                        :Encryption ""
                                                                                        :IncludeDvbSubtitles ""
                                                                                        :IncludeIframeOnlyStream ""
                                                                                        :PlaylistType ""
                                                                                        :PlaylistWindowSeconds ""
                                                                                        :ProgramDateTimeIntervalSeconds ""
                                                                                        :SegmentDurationSeconds ""
                                                                                        :StreamSelection ""
                                                                                        :UseAudioRenditionGroup ""}
                                                                           :id ""
                                                                           :manifestName ""
                                                                           :mssPackage {:Encryption ""
                                                                                        :ManifestWindowSeconds ""
                                                                                        :SegmentDurationSeconds ""
                                                                                        :StreamSelection ""}
                                                                           :origination ""
                                                                           :startoverWindowSeconds 0
                                                                           :tags {}
                                                                           :timeDelaySeconds 0
                                                                           :whitelist []}})
require "http/client"

url = "{{baseUrl}}/origin_endpoints"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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}}/origin_endpoints"),
    Content = new StringContent("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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}}/origin_endpoints");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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/origin_endpoints HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1438

{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "channelId": "",
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "id": "",
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": {},
  "timeDelaySeconds": 0,
  "whitelist": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/origin_endpoints")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/origin_endpoints"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/origin_endpoints")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/origin_endpoints")
  .header("content-type", "application/json")
  .body("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}")
  .asString();
const data = JSON.stringify({
  authorization: {
    CdnIdentifierSecret: '',
    SecretsRoleArn: ''
  },
  channelId: '',
  cmafPackage: {
    Encryption: '',
    HlsManifests: '',
    SegmentDurationSeconds: '',
    SegmentPrefix: '',
    StreamSelection: ''
  },
  dashPackage: {
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeIframeOnlyStream: '',
    ManifestLayout: '',
    ManifestWindowSeconds: '',
    MinBufferTimeSeconds: '',
    MinUpdatePeriodSeconds: '',
    PeriodTriggers: '',
    Profile: '',
    SegmentDurationSeconds: '',
    SegmentTemplateFormat: '',
    StreamSelection: '',
    SuggestedPresentationDelaySeconds: '',
    UtcTiming: '',
    UtcTimingUri: ''
  },
  description: '',
  hlsPackage: {
    AdMarkers: '',
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeDvbSubtitles: '',
    IncludeIframeOnlyStream: '',
    PlaylistType: '',
    PlaylistWindowSeconds: '',
    ProgramDateTimeIntervalSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: '',
    UseAudioRenditionGroup: ''
  },
  id: '',
  manifestName: '',
  mssPackage: {
    Encryption: '',
    ManifestWindowSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: ''
  },
  origination: '',
  startoverWindowSeconds: 0,
  tags: {},
  timeDelaySeconds: 0,
  whitelist: []
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/origin_endpoints',
  headers: {'content-type': 'application/json'},
  data: {
    authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
    channelId: '',
    cmafPackage: {
      Encryption: '',
      HlsManifests: '',
      SegmentDurationSeconds: '',
      SegmentPrefix: '',
      StreamSelection: ''
    },
    dashPackage: {
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeIframeOnlyStream: '',
      ManifestLayout: '',
      ManifestWindowSeconds: '',
      MinBufferTimeSeconds: '',
      MinUpdatePeriodSeconds: '',
      PeriodTriggers: '',
      Profile: '',
      SegmentDurationSeconds: '',
      SegmentTemplateFormat: '',
      StreamSelection: '',
      SuggestedPresentationDelaySeconds: '',
      UtcTiming: '',
      UtcTimingUri: ''
    },
    description: '',
    hlsPackage: {
      AdMarkers: '',
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeDvbSubtitles: '',
      IncludeIframeOnlyStream: '',
      PlaylistType: '',
      PlaylistWindowSeconds: '',
      ProgramDateTimeIntervalSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: '',
      UseAudioRenditionGroup: ''
    },
    id: '',
    manifestName: '',
    mssPackage: {
      Encryption: '',
      ManifestWindowSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: ''
    },
    origination: '',
    startoverWindowSeconds: 0,
    tags: {},
    timeDelaySeconds: 0,
    whitelist: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/origin_endpoints';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"authorization":{"CdnIdentifierSecret":"","SecretsRoleArn":""},"channelId":"","cmafPackage":{"Encryption":"","HlsManifests":"","SegmentDurationSeconds":"","SegmentPrefix":"","StreamSelection":""},"dashPackage":{"AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeIframeOnlyStream":"","ManifestLayout":"","ManifestWindowSeconds":"","MinBufferTimeSeconds":"","MinUpdatePeriodSeconds":"","PeriodTriggers":"","Profile":"","SegmentDurationSeconds":"","SegmentTemplateFormat":"","StreamSelection":"","SuggestedPresentationDelaySeconds":"","UtcTiming":"","UtcTimingUri":""},"description":"","hlsPackage":{"AdMarkers":"","AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeDvbSubtitles":"","IncludeIframeOnlyStream":"","PlaylistType":"","PlaylistWindowSeconds":"","ProgramDateTimeIntervalSeconds":"","SegmentDurationSeconds":"","StreamSelection":"","UseAudioRenditionGroup":""},"id":"","manifestName":"","mssPackage":{"Encryption":"","ManifestWindowSeconds":"","SegmentDurationSeconds":"","StreamSelection":""},"origination":"","startoverWindowSeconds":0,"tags":{},"timeDelaySeconds":0,"whitelist":[]}'
};

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}}/origin_endpoints',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "authorization": {\n    "CdnIdentifierSecret": "",\n    "SecretsRoleArn": ""\n  },\n  "channelId": "",\n  "cmafPackage": {\n    "Encryption": "",\n    "HlsManifests": "",\n    "SegmentDurationSeconds": "",\n    "SegmentPrefix": "",\n    "StreamSelection": ""\n  },\n  "dashPackage": {\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeIframeOnlyStream": "",\n    "ManifestLayout": "",\n    "ManifestWindowSeconds": "",\n    "MinBufferTimeSeconds": "",\n    "MinUpdatePeriodSeconds": "",\n    "PeriodTriggers": "",\n    "Profile": "",\n    "SegmentDurationSeconds": "",\n    "SegmentTemplateFormat": "",\n    "StreamSelection": "",\n    "SuggestedPresentationDelaySeconds": "",\n    "UtcTiming": "",\n    "UtcTimingUri": ""\n  },\n  "description": "",\n  "hlsPackage": {\n    "AdMarkers": "",\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeDvbSubtitles": "",\n    "IncludeIframeOnlyStream": "",\n    "PlaylistType": "",\n    "PlaylistWindowSeconds": "",\n    "ProgramDateTimeIntervalSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": "",\n    "UseAudioRenditionGroup": ""\n  },\n  "id": "",\n  "manifestName": "",\n  "mssPackage": {\n    "Encryption": "",\n    "ManifestWindowSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": ""\n  },\n  "origination": "",\n  "startoverWindowSeconds": 0,\n  "tags": {},\n  "timeDelaySeconds": 0,\n  "whitelist": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/origin_endpoints")
  .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/origin_endpoints',
  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({
  authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
  channelId: '',
  cmafPackage: {
    Encryption: '',
    HlsManifests: '',
    SegmentDurationSeconds: '',
    SegmentPrefix: '',
    StreamSelection: ''
  },
  dashPackage: {
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeIframeOnlyStream: '',
    ManifestLayout: '',
    ManifestWindowSeconds: '',
    MinBufferTimeSeconds: '',
    MinUpdatePeriodSeconds: '',
    PeriodTriggers: '',
    Profile: '',
    SegmentDurationSeconds: '',
    SegmentTemplateFormat: '',
    StreamSelection: '',
    SuggestedPresentationDelaySeconds: '',
    UtcTiming: '',
    UtcTimingUri: ''
  },
  description: '',
  hlsPackage: {
    AdMarkers: '',
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeDvbSubtitles: '',
    IncludeIframeOnlyStream: '',
    PlaylistType: '',
    PlaylistWindowSeconds: '',
    ProgramDateTimeIntervalSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: '',
    UseAudioRenditionGroup: ''
  },
  id: '',
  manifestName: '',
  mssPackage: {
    Encryption: '',
    ManifestWindowSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: ''
  },
  origination: '',
  startoverWindowSeconds: 0,
  tags: {},
  timeDelaySeconds: 0,
  whitelist: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/origin_endpoints',
  headers: {'content-type': 'application/json'},
  body: {
    authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
    channelId: '',
    cmafPackage: {
      Encryption: '',
      HlsManifests: '',
      SegmentDurationSeconds: '',
      SegmentPrefix: '',
      StreamSelection: ''
    },
    dashPackage: {
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeIframeOnlyStream: '',
      ManifestLayout: '',
      ManifestWindowSeconds: '',
      MinBufferTimeSeconds: '',
      MinUpdatePeriodSeconds: '',
      PeriodTriggers: '',
      Profile: '',
      SegmentDurationSeconds: '',
      SegmentTemplateFormat: '',
      StreamSelection: '',
      SuggestedPresentationDelaySeconds: '',
      UtcTiming: '',
      UtcTimingUri: ''
    },
    description: '',
    hlsPackage: {
      AdMarkers: '',
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeDvbSubtitles: '',
      IncludeIframeOnlyStream: '',
      PlaylistType: '',
      PlaylistWindowSeconds: '',
      ProgramDateTimeIntervalSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: '',
      UseAudioRenditionGroup: ''
    },
    id: '',
    manifestName: '',
    mssPackage: {
      Encryption: '',
      ManifestWindowSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: ''
    },
    origination: '',
    startoverWindowSeconds: 0,
    tags: {},
    timeDelaySeconds: 0,
    whitelist: []
  },
  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}}/origin_endpoints');

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

req.type('json');
req.send({
  authorization: {
    CdnIdentifierSecret: '',
    SecretsRoleArn: ''
  },
  channelId: '',
  cmafPackage: {
    Encryption: '',
    HlsManifests: '',
    SegmentDurationSeconds: '',
    SegmentPrefix: '',
    StreamSelection: ''
  },
  dashPackage: {
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeIframeOnlyStream: '',
    ManifestLayout: '',
    ManifestWindowSeconds: '',
    MinBufferTimeSeconds: '',
    MinUpdatePeriodSeconds: '',
    PeriodTriggers: '',
    Profile: '',
    SegmentDurationSeconds: '',
    SegmentTemplateFormat: '',
    StreamSelection: '',
    SuggestedPresentationDelaySeconds: '',
    UtcTiming: '',
    UtcTimingUri: ''
  },
  description: '',
  hlsPackage: {
    AdMarkers: '',
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeDvbSubtitles: '',
    IncludeIframeOnlyStream: '',
    PlaylistType: '',
    PlaylistWindowSeconds: '',
    ProgramDateTimeIntervalSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: '',
    UseAudioRenditionGroup: ''
  },
  id: '',
  manifestName: '',
  mssPackage: {
    Encryption: '',
    ManifestWindowSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: ''
  },
  origination: '',
  startoverWindowSeconds: 0,
  tags: {},
  timeDelaySeconds: 0,
  whitelist: []
});

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}}/origin_endpoints',
  headers: {'content-type': 'application/json'},
  data: {
    authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
    channelId: '',
    cmafPackage: {
      Encryption: '',
      HlsManifests: '',
      SegmentDurationSeconds: '',
      SegmentPrefix: '',
      StreamSelection: ''
    },
    dashPackage: {
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeIframeOnlyStream: '',
      ManifestLayout: '',
      ManifestWindowSeconds: '',
      MinBufferTimeSeconds: '',
      MinUpdatePeriodSeconds: '',
      PeriodTriggers: '',
      Profile: '',
      SegmentDurationSeconds: '',
      SegmentTemplateFormat: '',
      StreamSelection: '',
      SuggestedPresentationDelaySeconds: '',
      UtcTiming: '',
      UtcTimingUri: ''
    },
    description: '',
    hlsPackage: {
      AdMarkers: '',
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeDvbSubtitles: '',
      IncludeIframeOnlyStream: '',
      PlaylistType: '',
      PlaylistWindowSeconds: '',
      ProgramDateTimeIntervalSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: '',
      UseAudioRenditionGroup: ''
    },
    id: '',
    manifestName: '',
    mssPackage: {
      Encryption: '',
      ManifestWindowSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: ''
    },
    origination: '',
    startoverWindowSeconds: 0,
    tags: {},
    timeDelaySeconds: 0,
    whitelist: []
  }
};

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

const url = '{{baseUrl}}/origin_endpoints';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"authorization":{"CdnIdentifierSecret":"","SecretsRoleArn":""},"channelId":"","cmafPackage":{"Encryption":"","HlsManifests":"","SegmentDurationSeconds":"","SegmentPrefix":"","StreamSelection":""},"dashPackage":{"AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeIframeOnlyStream":"","ManifestLayout":"","ManifestWindowSeconds":"","MinBufferTimeSeconds":"","MinUpdatePeriodSeconds":"","PeriodTriggers":"","Profile":"","SegmentDurationSeconds":"","SegmentTemplateFormat":"","StreamSelection":"","SuggestedPresentationDelaySeconds":"","UtcTiming":"","UtcTimingUri":""},"description":"","hlsPackage":{"AdMarkers":"","AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeDvbSubtitles":"","IncludeIframeOnlyStream":"","PlaylistType":"","PlaylistWindowSeconds":"","ProgramDateTimeIntervalSeconds":"","SegmentDurationSeconds":"","StreamSelection":"","UseAudioRenditionGroup":""},"id":"","manifestName":"","mssPackage":{"Encryption":"","ManifestWindowSeconds":"","SegmentDurationSeconds":"","StreamSelection":""},"origination":"","startoverWindowSeconds":0,"tags":{},"timeDelaySeconds":0,"whitelist":[]}'
};

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 = @{ @"authorization": @{ @"CdnIdentifierSecret": @"", @"SecretsRoleArn": @"" },
                              @"channelId": @"",
                              @"cmafPackage": @{ @"Encryption": @"", @"HlsManifests": @"", @"SegmentDurationSeconds": @"", @"SegmentPrefix": @"", @"StreamSelection": @"" },
                              @"dashPackage": @{ @"AdTriggers": @"", @"AdsOnDeliveryRestrictions": @"", @"Encryption": @"", @"IncludeIframeOnlyStream": @"", @"ManifestLayout": @"", @"ManifestWindowSeconds": @"", @"MinBufferTimeSeconds": @"", @"MinUpdatePeriodSeconds": @"", @"PeriodTriggers": @"", @"Profile": @"", @"SegmentDurationSeconds": @"", @"SegmentTemplateFormat": @"", @"StreamSelection": @"", @"SuggestedPresentationDelaySeconds": @"", @"UtcTiming": @"", @"UtcTimingUri": @"" },
                              @"description": @"",
                              @"hlsPackage": @{ @"AdMarkers": @"", @"AdTriggers": @"", @"AdsOnDeliveryRestrictions": @"", @"Encryption": @"", @"IncludeDvbSubtitles": @"", @"IncludeIframeOnlyStream": @"", @"PlaylistType": @"", @"PlaylistWindowSeconds": @"", @"ProgramDateTimeIntervalSeconds": @"", @"SegmentDurationSeconds": @"", @"StreamSelection": @"", @"UseAudioRenditionGroup": @"" },
                              @"id": @"",
                              @"manifestName": @"",
                              @"mssPackage": @{ @"Encryption": @"", @"ManifestWindowSeconds": @"", @"SegmentDurationSeconds": @"", @"StreamSelection": @"" },
                              @"origination": @"",
                              @"startoverWindowSeconds": @0,
                              @"tags": @{  },
                              @"timeDelaySeconds": @0,
                              @"whitelist": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/origin_endpoints"]
                                                       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}}/origin_endpoints" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/origin_endpoints",
  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([
    'authorization' => [
        'CdnIdentifierSecret' => '',
        'SecretsRoleArn' => ''
    ],
    'channelId' => '',
    'cmafPackage' => [
        'Encryption' => '',
        'HlsManifests' => '',
        'SegmentDurationSeconds' => '',
        'SegmentPrefix' => '',
        'StreamSelection' => ''
    ],
    'dashPackage' => [
        'AdTriggers' => '',
        'AdsOnDeliveryRestrictions' => '',
        'Encryption' => '',
        'IncludeIframeOnlyStream' => '',
        'ManifestLayout' => '',
        'ManifestWindowSeconds' => '',
        'MinBufferTimeSeconds' => '',
        'MinUpdatePeriodSeconds' => '',
        'PeriodTriggers' => '',
        'Profile' => '',
        'SegmentDurationSeconds' => '',
        'SegmentTemplateFormat' => '',
        'StreamSelection' => '',
        'SuggestedPresentationDelaySeconds' => '',
        'UtcTiming' => '',
        'UtcTimingUri' => ''
    ],
    'description' => '',
    'hlsPackage' => [
        'AdMarkers' => '',
        'AdTriggers' => '',
        'AdsOnDeliveryRestrictions' => '',
        'Encryption' => '',
        'IncludeDvbSubtitles' => '',
        'IncludeIframeOnlyStream' => '',
        'PlaylistType' => '',
        'PlaylistWindowSeconds' => '',
        'ProgramDateTimeIntervalSeconds' => '',
        'SegmentDurationSeconds' => '',
        'StreamSelection' => '',
        'UseAudioRenditionGroup' => ''
    ],
    'id' => '',
    'manifestName' => '',
    'mssPackage' => [
        'Encryption' => '',
        'ManifestWindowSeconds' => '',
        'SegmentDurationSeconds' => '',
        'StreamSelection' => ''
    ],
    'origination' => '',
    'startoverWindowSeconds' => 0,
    'tags' => [
        
    ],
    'timeDelaySeconds' => 0,
    'whitelist' => [
        
    ]
  ]),
  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}}/origin_endpoints', [
  'body' => '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "channelId": "",
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "id": "",
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": {},
  "timeDelaySeconds": 0,
  "whitelist": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'authorization' => [
    'CdnIdentifierSecret' => '',
    'SecretsRoleArn' => ''
  ],
  'channelId' => '',
  'cmafPackage' => [
    'Encryption' => '',
    'HlsManifests' => '',
    'SegmentDurationSeconds' => '',
    'SegmentPrefix' => '',
    'StreamSelection' => ''
  ],
  'dashPackage' => [
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeIframeOnlyStream' => '',
    'ManifestLayout' => '',
    'ManifestWindowSeconds' => '',
    'MinBufferTimeSeconds' => '',
    'MinUpdatePeriodSeconds' => '',
    'PeriodTriggers' => '',
    'Profile' => '',
    'SegmentDurationSeconds' => '',
    'SegmentTemplateFormat' => '',
    'StreamSelection' => '',
    'SuggestedPresentationDelaySeconds' => '',
    'UtcTiming' => '',
    'UtcTimingUri' => ''
  ],
  'description' => '',
  'hlsPackage' => [
    'AdMarkers' => '',
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeDvbSubtitles' => '',
    'IncludeIframeOnlyStream' => '',
    'PlaylistType' => '',
    'PlaylistWindowSeconds' => '',
    'ProgramDateTimeIntervalSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => '',
    'UseAudioRenditionGroup' => ''
  ],
  'id' => '',
  'manifestName' => '',
  'mssPackage' => [
    'Encryption' => '',
    'ManifestWindowSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => ''
  ],
  'origination' => '',
  'startoverWindowSeconds' => 0,
  'tags' => [
    
  ],
  'timeDelaySeconds' => 0,
  'whitelist' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'authorization' => [
    'CdnIdentifierSecret' => '',
    'SecretsRoleArn' => ''
  ],
  'channelId' => '',
  'cmafPackage' => [
    'Encryption' => '',
    'HlsManifests' => '',
    'SegmentDurationSeconds' => '',
    'SegmentPrefix' => '',
    'StreamSelection' => ''
  ],
  'dashPackage' => [
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeIframeOnlyStream' => '',
    'ManifestLayout' => '',
    'ManifestWindowSeconds' => '',
    'MinBufferTimeSeconds' => '',
    'MinUpdatePeriodSeconds' => '',
    'PeriodTriggers' => '',
    'Profile' => '',
    'SegmentDurationSeconds' => '',
    'SegmentTemplateFormat' => '',
    'StreamSelection' => '',
    'SuggestedPresentationDelaySeconds' => '',
    'UtcTiming' => '',
    'UtcTimingUri' => ''
  ],
  'description' => '',
  'hlsPackage' => [
    'AdMarkers' => '',
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeDvbSubtitles' => '',
    'IncludeIframeOnlyStream' => '',
    'PlaylistType' => '',
    'PlaylistWindowSeconds' => '',
    'ProgramDateTimeIntervalSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => '',
    'UseAudioRenditionGroup' => ''
  ],
  'id' => '',
  'manifestName' => '',
  'mssPackage' => [
    'Encryption' => '',
    'ManifestWindowSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => ''
  ],
  'origination' => '',
  'startoverWindowSeconds' => 0,
  'tags' => [
    
  ],
  'timeDelaySeconds' => 0,
  'whitelist' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/origin_endpoints');
$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}}/origin_endpoints' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "channelId": "",
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "id": "",
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": {},
  "timeDelaySeconds": 0,
  "whitelist": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/origin_endpoints' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "channelId": "",
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "id": "",
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": {},
  "timeDelaySeconds": 0,
  "whitelist": []
}'
import http.client

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

payload = "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}"

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

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

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

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

url = "{{baseUrl}}/origin_endpoints"

payload = {
    "authorization": {
        "CdnIdentifierSecret": "",
        "SecretsRoleArn": ""
    },
    "channelId": "",
    "cmafPackage": {
        "Encryption": "",
        "HlsManifests": "",
        "SegmentDurationSeconds": "",
        "SegmentPrefix": "",
        "StreamSelection": ""
    },
    "dashPackage": {
        "AdTriggers": "",
        "AdsOnDeliveryRestrictions": "",
        "Encryption": "",
        "IncludeIframeOnlyStream": "",
        "ManifestLayout": "",
        "ManifestWindowSeconds": "",
        "MinBufferTimeSeconds": "",
        "MinUpdatePeriodSeconds": "",
        "PeriodTriggers": "",
        "Profile": "",
        "SegmentDurationSeconds": "",
        "SegmentTemplateFormat": "",
        "StreamSelection": "",
        "SuggestedPresentationDelaySeconds": "",
        "UtcTiming": "",
        "UtcTimingUri": ""
    },
    "description": "",
    "hlsPackage": {
        "AdMarkers": "",
        "AdTriggers": "",
        "AdsOnDeliveryRestrictions": "",
        "Encryption": "",
        "IncludeDvbSubtitles": "",
        "IncludeIframeOnlyStream": "",
        "PlaylistType": "",
        "PlaylistWindowSeconds": "",
        "ProgramDateTimeIntervalSeconds": "",
        "SegmentDurationSeconds": "",
        "StreamSelection": "",
        "UseAudioRenditionGroup": ""
    },
    "id": "",
    "manifestName": "",
    "mssPackage": {
        "Encryption": "",
        "ManifestWindowSeconds": "",
        "SegmentDurationSeconds": "",
        "StreamSelection": ""
    },
    "origination": "",
    "startoverWindowSeconds": 0,
    "tags": {},
    "timeDelaySeconds": 0,
    "whitelist": []
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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}}/origin_endpoints")

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  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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/origin_endpoints') do |req|
  req.body = "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"channelId\": \"\",\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"id\": \"\",\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"tags\": {},\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}"
end

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

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

    let payload = json!({
        "authorization": json!({
            "CdnIdentifierSecret": "",
            "SecretsRoleArn": ""
        }),
        "channelId": "",
        "cmafPackage": json!({
            "Encryption": "",
            "HlsManifests": "",
            "SegmentDurationSeconds": "",
            "SegmentPrefix": "",
            "StreamSelection": ""
        }),
        "dashPackage": json!({
            "AdTriggers": "",
            "AdsOnDeliveryRestrictions": "",
            "Encryption": "",
            "IncludeIframeOnlyStream": "",
            "ManifestLayout": "",
            "ManifestWindowSeconds": "",
            "MinBufferTimeSeconds": "",
            "MinUpdatePeriodSeconds": "",
            "PeriodTriggers": "",
            "Profile": "",
            "SegmentDurationSeconds": "",
            "SegmentTemplateFormat": "",
            "StreamSelection": "",
            "SuggestedPresentationDelaySeconds": "",
            "UtcTiming": "",
            "UtcTimingUri": ""
        }),
        "description": "",
        "hlsPackage": json!({
            "AdMarkers": "",
            "AdTriggers": "",
            "AdsOnDeliveryRestrictions": "",
            "Encryption": "",
            "IncludeDvbSubtitles": "",
            "IncludeIframeOnlyStream": "",
            "PlaylistType": "",
            "PlaylistWindowSeconds": "",
            "ProgramDateTimeIntervalSeconds": "",
            "SegmentDurationSeconds": "",
            "StreamSelection": "",
            "UseAudioRenditionGroup": ""
        }),
        "id": "",
        "manifestName": "",
        "mssPackage": json!({
            "Encryption": "",
            "ManifestWindowSeconds": "",
            "SegmentDurationSeconds": "",
            "StreamSelection": ""
        }),
        "origination": "",
        "startoverWindowSeconds": 0,
        "tags": json!({}),
        "timeDelaySeconds": 0,
        "whitelist": ()
    });

    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}}/origin_endpoints \
  --header 'content-type: application/json' \
  --data '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "channelId": "",
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "id": "",
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": {},
  "timeDelaySeconds": 0,
  "whitelist": []
}'
echo '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "channelId": "",
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "id": "",
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": {},
  "timeDelaySeconds": 0,
  "whitelist": []
}' |  \
  http POST {{baseUrl}}/origin_endpoints \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "authorization": {\n    "CdnIdentifierSecret": "",\n    "SecretsRoleArn": ""\n  },\n  "channelId": "",\n  "cmafPackage": {\n    "Encryption": "",\n    "HlsManifests": "",\n    "SegmentDurationSeconds": "",\n    "SegmentPrefix": "",\n    "StreamSelection": ""\n  },\n  "dashPackage": {\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeIframeOnlyStream": "",\n    "ManifestLayout": "",\n    "ManifestWindowSeconds": "",\n    "MinBufferTimeSeconds": "",\n    "MinUpdatePeriodSeconds": "",\n    "PeriodTriggers": "",\n    "Profile": "",\n    "SegmentDurationSeconds": "",\n    "SegmentTemplateFormat": "",\n    "StreamSelection": "",\n    "SuggestedPresentationDelaySeconds": "",\n    "UtcTiming": "",\n    "UtcTimingUri": ""\n  },\n  "description": "",\n  "hlsPackage": {\n    "AdMarkers": "",\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeDvbSubtitles": "",\n    "IncludeIframeOnlyStream": "",\n    "PlaylistType": "",\n    "PlaylistWindowSeconds": "",\n    "ProgramDateTimeIntervalSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": "",\n    "UseAudioRenditionGroup": ""\n  },\n  "id": "",\n  "manifestName": "",\n  "mssPackage": {\n    "Encryption": "",\n    "ManifestWindowSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": ""\n  },\n  "origination": "",\n  "startoverWindowSeconds": 0,\n  "tags": {},\n  "timeDelaySeconds": 0,\n  "whitelist": []\n}' \
  --output-document \
  - {{baseUrl}}/origin_endpoints
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "authorization": [
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  ],
  "channelId": "",
  "cmafPackage": [
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  ],
  "dashPackage": [
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  ],
  "description": "",
  "hlsPackage": [
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  ],
  "id": "",
  "manifestName": "",
  "mssPackage": [
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  ],
  "origination": "",
  "startoverWindowSeconds": 0,
  "tags": [],
  "timeDelaySeconds": 0,
  "whitelist": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/origin_endpoints")! 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 DeleteChannel
{{baseUrl}}/channels/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels/:id");

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

(client/delete "{{baseUrl}}/channels/:id")
require "http/client"

url = "{{baseUrl}}/channels/:id"

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}}/channels/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/channels/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/channels/:id"

	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/channels/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels/:id"))
    .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}}/channels/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/channels/:id")
  .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}}/channels/:id');

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

const options = {method: 'DELETE', url: '{{baseUrl}}/channels/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels/:id';
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}}/channels/:id',
  method: 'DELETE',
  headers: {}
};

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

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

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/channels/:id',
  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}}/channels/:id'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/channels/:id');

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}}/channels/:id'};

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

const url = '{{baseUrl}}/channels/:id';
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}}/channels/:id"]
                                                       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}}/channels/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/channels/:id",
  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}}/channels/:id');

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

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

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

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

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

conn.request("DELETE", "/baseUrl/channels/:id")

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

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

url = "{{baseUrl}}/channels/:id"

response = requests.delete(url)

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

url <- "{{baseUrl}}/channels/:id"

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

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

url = URI("{{baseUrl}}/channels/:id")

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/channels/:id') do |req|
end

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

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

    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}}/channels/:id
http DELETE {{baseUrl}}/channels/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/channels/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels/:id")! 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 DeleteOriginEndpoint
{{baseUrl}}/origin_endpoints/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/origin_endpoints/:id");

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

(client/delete "{{baseUrl}}/origin_endpoints/:id")
require "http/client"

url = "{{baseUrl}}/origin_endpoints/:id"

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}}/origin_endpoints/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/origin_endpoints/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/origin_endpoints/:id"

	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/origin_endpoints/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/origin_endpoints/:id"))
    .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}}/origin_endpoints/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/origin_endpoints/:id")
  .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}}/origin_endpoints/:id');

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

const options = {method: 'DELETE', url: '{{baseUrl}}/origin_endpoints/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/origin_endpoints/:id';
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}}/origin_endpoints/:id',
  method: 'DELETE',
  headers: {}
};

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

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

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/origin_endpoints/:id',
  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}}/origin_endpoints/:id'};

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

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

const req = unirest('DELETE', '{{baseUrl}}/origin_endpoints/:id');

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}}/origin_endpoints/:id'};

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

const url = '{{baseUrl}}/origin_endpoints/:id';
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}}/origin_endpoints/:id"]
                                                       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}}/origin_endpoints/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/origin_endpoints/:id",
  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}}/origin_endpoints/:id');

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

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

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

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

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

conn.request("DELETE", "/baseUrl/origin_endpoints/:id")

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

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

url = "{{baseUrl}}/origin_endpoints/:id"

response = requests.delete(url)

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

url <- "{{baseUrl}}/origin_endpoints/:id"

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

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

url = URI("{{baseUrl}}/origin_endpoints/:id")

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/origin_endpoints/:id') do |req|
end

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

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

    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}}/origin_endpoints/:id
http DELETE {{baseUrl}}/origin_endpoints/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/origin_endpoints/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/origin_endpoints/:id")! 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()
GET DescribeChannel
{{baseUrl}}/channels/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels/:id");

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

(client/get "{{baseUrl}}/channels/:id")
require "http/client"

url = "{{baseUrl}}/channels/:id"

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}}/channels/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/channels/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/channels/:id"

	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/channels/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels/:id"))
    .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}}/channels/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/channels/:id")
  .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}}/channels/:id');

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

const options = {method: 'GET', url: '{{baseUrl}}/channels/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels/:id';
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}}/channels/:id',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/channels/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/channels/:id',
  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}}/channels/:id'};

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

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

const req = unirest('GET', '{{baseUrl}}/channels/:id');

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}}/channels/:id'};

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

const url = '{{baseUrl}}/channels/:id';
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}}/channels/:id"]
                                                       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}}/channels/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/channels/:id",
  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}}/channels/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/channels/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/channels/:id")

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

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

url = "{{baseUrl}}/channels/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/channels/:id"

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

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

url = URI("{{baseUrl}}/channels/:id")

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/channels/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/channels/:id
http GET {{baseUrl}}/channels/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/channels/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels/:id")! 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 DescribeHarvestJob
{{baseUrl}}/harvest_jobs/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/harvest_jobs/:id");

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

(client/get "{{baseUrl}}/harvest_jobs/:id")
require "http/client"

url = "{{baseUrl}}/harvest_jobs/:id"

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}}/harvest_jobs/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/harvest_jobs/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/harvest_jobs/:id"

	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/harvest_jobs/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/harvest_jobs/:id"))
    .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}}/harvest_jobs/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/harvest_jobs/:id")
  .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}}/harvest_jobs/:id');

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

const options = {method: 'GET', url: '{{baseUrl}}/harvest_jobs/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/harvest_jobs/:id';
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}}/harvest_jobs/:id',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/harvest_jobs/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/harvest_jobs/:id',
  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}}/harvest_jobs/:id'};

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

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

const req = unirest('GET', '{{baseUrl}}/harvest_jobs/:id');

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}}/harvest_jobs/:id'};

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

const url = '{{baseUrl}}/harvest_jobs/:id';
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}}/harvest_jobs/:id"]
                                                       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}}/harvest_jobs/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/harvest_jobs/:id",
  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}}/harvest_jobs/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/harvest_jobs/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/harvest_jobs/:id")

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

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

url = "{{baseUrl}}/harvest_jobs/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/harvest_jobs/:id"

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

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

url = URI("{{baseUrl}}/harvest_jobs/:id")

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/harvest_jobs/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/harvest_jobs/:id
http GET {{baseUrl}}/harvest_jobs/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/harvest_jobs/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/harvest_jobs/:id")! 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 DescribeOriginEndpoint
{{baseUrl}}/origin_endpoints/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/origin_endpoints/:id");

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

(client/get "{{baseUrl}}/origin_endpoints/:id")
require "http/client"

url = "{{baseUrl}}/origin_endpoints/:id"

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}}/origin_endpoints/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/origin_endpoints/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/origin_endpoints/:id"

	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/origin_endpoints/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/origin_endpoints/:id"))
    .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}}/origin_endpoints/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/origin_endpoints/:id")
  .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}}/origin_endpoints/:id');

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

const options = {method: 'GET', url: '{{baseUrl}}/origin_endpoints/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/origin_endpoints/:id';
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}}/origin_endpoints/:id',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/origin_endpoints/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/origin_endpoints/:id',
  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}}/origin_endpoints/:id'};

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

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

const req = unirest('GET', '{{baseUrl}}/origin_endpoints/:id');

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}}/origin_endpoints/:id'};

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

const url = '{{baseUrl}}/origin_endpoints/:id';
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}}/origin_endpoints/:id"]
                                                       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}}/origin_endpoints/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/origin_endpoints/:id",
  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}}/origin_endpoints/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/origin_endpoints/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/origin_endpoints/:id")

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

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

url = "{{baseUrl}}/origin_endpoints/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/origin_endpoints/:id"

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

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

url = URI("{{baseUrl}}/origin_endpoints/:id")

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/origin_endpoints/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/origin_endpoints/:id
http GET {{baseUrl}}/origin_endpoints/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/origin_endpoints/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/origin_endpoints/:id")! 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 ListChannels
{{baseUrl}}/channels
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels");

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

(client/get "{{baseUrl}}/channels")
require "http/client"

url = "{{baseUrl}}/channels"

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}}/channels"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/channels");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

	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/channels HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels"))
    .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}}/channels")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/channels")
  .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}}/channels');

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

const options = {method: 'GET', url: '{{baseUrl}}/channels'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels';
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}}/channels',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/channels")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/channels',
  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}}/channels'};

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

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

const req = unirest('GET', '{{baseUrl}}/channels');

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}}/channels'};

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

const url = '{{baseUrl}}/channels';
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}}/channels"]
                                                       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}}/channels" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/channels",
  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}}/channels');

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

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

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

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

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

conn.request("GET", "/baseUrl/channels")

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

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

url = "{{baseUrl}}/channels"

response = requests.get(url)

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

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

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

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

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

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/channels') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/channels
http GET {{baseUrl}}/channels
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/channels
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels")! 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 ListHarvestJobs
{{baseUrl}}/harvest_jobs
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/harvest_jobs");

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

(client/get "{{baseUrl}}/harvest_jobs")
require "http/client"

url = "{{baseUrl}}/harvest_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}}/harvest_jobs"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/harvest_jobs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/harvest_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/harvest_jobs HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/harvest_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}}/harvest_jobs")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/harvest_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}}/harvest_jobs');

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

const options = {method: 'GET', url: '{{baseUrl}}/harvest_jobs'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/harvest_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}}/harvest_jobs',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/harvest_jobs")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/harvest_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}}/harvest_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}}/harvest_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}}/harvest_jobs'};

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

const url = '{{baseUrl}}/harvest_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}}/harvest_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}}/harvest_jobs" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/harvest_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}}/harvest_jobs');

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

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

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

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

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

conn.request("GET", "/baseUrl/harvest_jobs")

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

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

url = "{{baseUrl}}/harvest_jobs"

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/harvest_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/harvest_jobs') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/harvest_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}}/harvest_jobs
http GET {{baseUrl}}/harvest_jobs
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/harvest_jobs
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/harvest_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 ListOriginEndpoints
{{baseUrl}}/origin_endpoints
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/origin_endpoints");

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

(client/get "{{baseUrl}}/origin_endpoints")
require "http/client"

url = "{{baseUrl}}/origin_endpoints"

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}}/origin_endpoints"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/origin_endpoints");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

	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/origin_endpoints HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/origin_endpoints"))
    .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}}/origin_endpoints")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/origin_endpoints")
  .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}}/origin_endpoints');

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

const options = {method: 'GET', url: '{{baseUrl}}/origin_endpoints'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/origin_endpoints';
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}}/origin_endpoints',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/origin_endpoints")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/origin_endpoints',
  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}}/origin_endpoints'};

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

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

const req = unirest('GET', '{{baseUrl}}/origin_endpoints');

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}}/origin_endpoints'};

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

const url = '{{baseUrl}}/origin_endpoints';
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}}/origin_endpoints"]
                                                       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}}/origin_endpoints" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/origin_endpoints",
  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}}/origin_endpoints');

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

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

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

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

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

conn.request("GET", "/baseUrl/origin_endpoints")

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

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

url = "{{baseUrl}}/origin_endpoints"

response = requests.get(url)

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

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

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

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

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

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/origin_endpoints') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/origin_endpoints
http GET {{baseUrl}}/origin_endpoints
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/origin_endpoints
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/origin_endpoints")! 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/:resource-arn
QUERY PARAMS

resource-arn
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:resource-arn");

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

(client/get "{{baseUrl}}/tags/:resource-arn")
require "http/client"

url = "{{baseUrl}}/tags/:resource-arn"

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/:resource-arn"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/tags/:resource-arn");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/tags/:resource-arn"

	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/:resource-arn HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/tags/:resource-arn")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tags/:resource-arn"))
    .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/:resource-arn")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/tags/:resource-arn")
  .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/:resource-arn');

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

const options = {method: 'GET', url: '{{baseUrl}}/tags/:resource-arn'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tags/:resource-arn';
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/:resource-arn',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/tags/:resource-arn")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/tags/:resource-arn',
  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/:resource-arn'};

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/:resource-arn');

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/:resource-arn'};

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

const url = '{{baseUrl}}/tags/:resource-arn';
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/:resource-arn"]
                                                       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/:resource-arn" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tags/:resource-arn",
  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/:resource-arn');

echo $response->getBody();
setUrl('{{baseUrl}}/tags/:resource-arn');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/tags/:resource-arn');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/tags/:resource-arn' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:resource-arn' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/tags/:resource-arn")

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

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

url = "{{baseUrl}}/tags/:resource-arn"

response = requests.get(url)

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

url <- "{{baseUrl}}/tags/:resource-arn"

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

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

url = URI("{{baseUrl}}/tags/:resource-arn")

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/:resource-arn') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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/:resource-arn
http GET {{baseUrl}}/tags/:resource-arn
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/tags/:resource-arn
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:resource-arn")! 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()
PUT RotateChannelCredentials
{{baseUrl}}/channels/:id/credentials
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels/:id/credentials");

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

(client/put "{{baseUrl}}/channels/:id/credentials")
require "http/client"

url = "{{baseUrl}}/channels/:id/credentials"

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

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

func main() {

	url := "{{baseUrl}}/channels/:id/credentials"

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

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

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

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

}
PUT /baseUrl/channels/:id/credentials HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/channels/:id/credentials")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels/:id/credentials"))
    .method("PUT", 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}}/channels/:id/credentials")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/channels/:id/credentials")
  .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('PUT', '{{baseUrl}}/channels/:id/credentials');

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

const options = {method: 'PUT', url: '{{baseUrl}}/channels/:id/credentials'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels/:id/credentials';
const options = {method: 'PUT'};

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}}/channels/:id/credentials',
  method: 'PUT',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/channels/:id/credentials")
  .put(null)
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/channels/:id/credentials',
  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: 'PUT', url: '{{baseUrl}}/channels/:id/credentials'};

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

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

const req = unirest('PUT', '{{baseUrl}}/channels/:id/credentials');

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

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

const options = {method: 'PUT', url: '{{baseUrl}}/channels/:id/credentials'};

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

const url = '{{baseUrl}}/channels/:id/credentials';
const options = {method: 'PUT'};

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}}/channels/:id/credentials"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

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}}/channels/:id/credentials" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/channels/:id/credentials');

echo $response->getBody();
setUrl('{{baseUrl}}/channels/:id/credentials');
$request->setMethod(HTTP_METH_PUT);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/channels/:id/credentials');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/channels/:id/credentials' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/channels/:id/credentials' -Method PUT 
import http.client

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

conn.request("PUT", "/baseUrl/channels/:id/credentials")

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

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

url = "{{baseUrl}}/channels/:id/credentials"

response = requests.put(url)

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

url <- "{{baseUrl}}/channels/:id/credentials"

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

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

url = URI("{{baseUrl}}/channels/:id/credentials")

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

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

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

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

response = conn.put('/baseUrl/channels/:id/credentials') do |req|
end

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

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

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/channels/:id/credentials
http PUT {{baseUrl}}/channels/:id/credentials
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/channels/:id/credentials
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels/:id/credentials")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

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()
PUT RotateIngestEndpointCredentials
{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials
QUERY PARAMS

id
ingest_endpoint_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials");

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

(client/put "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")
require "http/client"

url = "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials"

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

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

func main() {

	url := "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials"

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

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

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

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

}
PUT /baseUrl/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials"))
    .method("PUT", 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}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")
  .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('PUT', '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials';
const options = {method: 'PUT'};

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}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials',
  method: 'PUT',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")
  .put(null)
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials',
  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: 'PUT',
  url: '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials'
};

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

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

const req = unirest('PUT', '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials');

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials'
};

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

const url = '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials';
const options = {method: 'PUT'};

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}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

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}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials');

echo $response->getBody();
setUrl('{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials');
$request->setMethod(HTTP_METH_PUT);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials' -Method PUT 
import http.client

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

conn.request("PUT", "/baseUrl/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")

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

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

url = "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials"

response = requests.put(url)

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

url <- "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials"

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

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

url = URI("{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")

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

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

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

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

response = conn.put('/baseUrl/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials";

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials
http PUT {{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels/:id/ingest_endpoints/:ingest_endpoint_id/credentials")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

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/:resource-arn
QUERY PARAMS

resource-arn
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/:resource-arn");

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/:resource-arn" {:content-type :json
                                                               :form-params {:tags {}}})
require "http/client"

url = "{{baseUrl}}/tags/:resource-arn"
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/:resource-arn"),
    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/:resource-arn");
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/:resource-arn"

	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/:resource-arn HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 16

{
  "tags": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/tags/:resource-arn")
  .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/:resource-arn"))
    .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/:resource-arn")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/tags/:resource-arn")
  .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/:resource-arn');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/tags/:resource-arn',
  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/:resource-arn';
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/:resource-arn',
  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/:resource-arn")
  .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/:resource-arn',
  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/:resource-arn',
  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/:resource-arn');

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/:resource-arn',
  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/:resource-arn';
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/:resource-arn"]
                                                       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/:resource-arn" 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/:resource-arn",
  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/:resource-arn', [
  'body' => '{
  "tags": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/tags/:resource-arn');
$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/:resource-arn');
$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/:resource-arn' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "tags": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:resource-arn' -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/:resource-arn", payload, headers)

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

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

url = "{{baseUrl}}/tags/:resource-arn"

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

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

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

url <- "{{baseUrl}}/tags/:resource-arn"

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/:resource-arn")

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/:resource-arn') 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/:resource-arn";

    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/:resource-arn \
  --header 'content-type: application/json' \
  --data '{
  "tags": {}
}'
echo '{
  "tags": {}
}' |  \
  http POST {{baseUrl}}/tags/:resource-arn \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "tags": {}\n}' \
  --output-document \
  - {{baseUrl}}/tags/:resource-arn
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/:resource-arn")! 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/:resource-arn#tagKeys
QUERY PARAMS

tagKeys
resource-arn
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/tags/:resource-arn?tagKeys=#tagKeys");

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

(client/delete "{{baseUrl}}/tags/:resource-arn#tagKeys" {:query-params {:tagKeys ""}})
require "http/client"

url = "{{baseUrl}}/tags/:resource-arn?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/:resource-arn?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/:resource-arn?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/:resource-arn?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/:resource-arn?tagKeys= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/tags/:resource-arn?tagKeys=#tagKeys")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/tags/:resource-arn?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/:resource-arn?tagKeys=#tagKeys")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/tags/:resource-arn?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/:resource-arn?tagKeys=#tagKeys');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/tags/:resource-arn#tagKeys',
  params: {tagKeys: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/tags/:resource-arn?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/:resource-arn?tagKeys=#tagKeys',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/tags/:resource-arn?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/:resource-arn?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/:resource-arn#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/:resource-arn#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/:resource-arn#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/:resource-arn?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/:resource-arn?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/:resource-arn?tagKeys=#tagKeys" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/tags/:resource-arn?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/:resource-arn?tagKeys=#tagKeys');

echo $response->getBody();
setUrl('{{baseUrl}}/tags/:resource-arn#tagKeys');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'tagKeys' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/tags/:resource-arn#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/:resource-arn?tagKeys=#tagKeys' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/tags/:resource-arn?tagKeys=#tagKeys' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/tags/:resource-arn?tagKeys=")

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

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

url = "{{baseUrl}}/tags/:resource-arn#tagKeys"

querystring = {"tagKeys":""}

response = requests.delete(url, params=querystring)

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

url <- "{{baseUrl}}/tags/:resource-arn#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/:resource-arn?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/:resource-arn') 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/:resource-arn#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/:resource-arn?tagKeys=#tagKeys'
http DELETE '{{baseUrl}}/tags/:resource-arn?tagKeys=#tagKeys'
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/tags/:resource-arn?tagKeys=#tagKeys'
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/tags/:resource-arn?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()
PUT UpdateChannel
{{baseUrl}}/channels/:id
QUERY PARAMS

id
BODY json

{
  "description": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/channels/:id");

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}");

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

(client/put "{{baseUrl}}/channels/:id" {:content-type :json
                                                        :form-params {:description ""}})
require "http/client"

url = "{{baseUrl}}/channels/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"description\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/channels/:id"),
    Content = new StringContent("{\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}}/channels/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"description\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/channels/:id"

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

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/channels/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 23

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/channels/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\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  \"description\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/channels/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

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

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

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

xhr.open('PUT', '{{baseUrl}}/channels/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/channels/:id',
  headers: {'content-type': 'application/json'},
  data: {description: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/channels/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"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}}/channels/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\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  \"description\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/channels/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/channels/:id',
  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: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/channels/:id',
  headers: {'content-type': 'application/json'},
  body: {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('PUT', '{{baseUrl}}/channels/:id');

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

req.type('json');
req.send({
  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: 'PUT',
  url: '{{baseUrl}}/channels/:id',
  headers: {'content-type': 'application/json'},
  data: {description: ''}
};

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

const url = '{{baseUrl}}/channels/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"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 = @{ @"description": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/channels/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/channels/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/channels/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    '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('PUT', '{{baseUrl}}/channels/:id', [
  'body' => '{
  "description": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/channels/:id');
$request->setMethod(HTTP_METH_PUT);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => ''
]));
$request->setRequestUrl('{{baseUrl}}/channels/:id');
$request->setRequestMethod('PUT');
$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}}/channels/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "description": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/channels/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "description": ""
}'
import http.client

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

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

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

conn.request("PUT", "/baseUrl/channels/:id", payload, headers)

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

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

url = "{{baseUrl}}/channels/:id"

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

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

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

url <- "{{baseUrl}}/channels/:id"

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

encode <- "json"

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

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

url = URI("{{baseUrl}}/channels/:id")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\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.put('/baseUrl/channels/:id') do |req|
  req.body = "{\n  \"description\": \"\"\n}"
end

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

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

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

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/channels/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()
PUT UpdateOriginEndpoint
{{baseUrl}}/origin_endpoints/:id
QUERY PARAMS

id
BODY json

{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/origin_endpoints/:id");

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  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}");

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

(client/put "{{baseUrl}}/origin_endpoints/:id" {:content-type :json
                                                                :form-params {:authorization {:CdnIdentifierSecret ""
                                                                                              :SecretsRoleArn ""}
                                                                              :cmafPackage {:Encryption ""
                                                                                            :HlsManifests ""
                                                                                            :SegmentDurationSeconds ""
                                                                                            :SegmentPrefix ""
                                                                                            :StreamSelection ""}
                                                                              :dashPackage {:AdTriggers ""
                                                                                            :AdsOnDeliveryRestrictions ""
                                                                                            :Encryption ""
                                                                                            :IncludeIframeOnlyStream ""
                                                                                            :ManifestLayout ""
                                                                                            :ManifestWindowSeconds ""
                                                                                            :MinBufferTimeSeconds ""
                                                                                            :MinUpdatePeriodSeconds ""
                                                                                            :PeriodTriggers ""
                                                                                            :Profile ""
                                                                                            :SegmentDurationSeconds ""
                                                                                            :SegmentTemplateFormat ""
                                                                                            :StreamSelection ""
                                                                                            :SuggestedPresentationDelaySeconds ""
                                                                                            :UtcTiming ""
                                                                                            :UtcTimingUri ""}
                                                                              :description ""
                                                                              :hlsPackage {:AdMarkers ""
                                                                                           :AdTriggers ""
                                                                                           :AdsOnDeliveryRestrictions ""
                                                                                           :Encryption ""
                                                                                           :IncludeDvbSubtitles ""
                                                                                           :IncludeIframeOnlyStream ""
                                                                                           :PlaylistType ""
                                                                                           :PlaylistWindowSeconds ""
                                                                                           :ProgramDateTimeIntervalSeconds ""
                                                                                           :SegmentDurationSeconds ""
                                                                                           :StreamSelection ""
                                                                                           :UseAudioRenditionGroup ""}
                                                                              :manifestName ""
                                                                              :mssPackage {:Encryption ""
                                                                                           :ManifestWindowSeconds ""
                                                                                           :SegmentDurationSeconds ""
                                                                                           :StreamSelection ""}
                                                                              :origination ""
                                                                              :startoverWindowSeconds 0
                                                                              :timeDelaySeconds 0
                                                                              :whitelist []}})
require "http/client"

url = "{{baseUrl}}/origin_endpoints/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/origin_endpoints/:id"),
    Content = new StringContent("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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}}/origin_endpoints/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/origin_endpoints/:id"

	payload := strings.NewReader("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}")

	req, _ := http.NewRequest("PUT", 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))

}
PUT /baseUrl/origin_endpoints/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1393

{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/origin_endpoints/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/origin_endpoints/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/origin_endpoints/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/origin_endpoints/:id")
  .header("content-type", "application/json")
  .body("{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}")
  .asString();
const data = JSON.stringify({
  authorization: {
    CdnIdentifierSecret: '',
    SecretsRoleArn: ''
  },
  cmafPackage: {
    Encryption: '',
    HlsManifests: '',
    SegmentDurationSeconds: '',
    SegmentPrefix: '',
    StreamSelection: ''
  },
  dashPackage: {
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeIframeOnlyStream: '',
    ManifestLayout: '',
    ManifestWindowSeconds: '',
    MinBufferTimeSeconds: '',
    MinUpdatePeriodSeconds: '',
    PeriodTriggers: '',
    Profile: '',
    SegmentDurationSeconds: '',
    SegmentTemplateFormat: '',
    StreamSelection: '',
    SuggestedPresentationDelaySeconds: '',
    UtcTiming: '',
    UtcTimingUri: ''
  },
  description: '',
  hlsPackage: {
    AdMarkers: '',
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeDvbSubtitles: '',
    IncludeIframeOnlyStream: '',
    PlaylistType: '',
    PlaylistWindowSeconds: '',
    ProgramDateTimeIntervalSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: '',
    UseAudioRenditionGroup: ''
  },
  manifestName: '',
  mssPackage: {
    Encryption: '',
    ManifestWindowSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: ''
  },
  origination: '',
  startoverWindowSeconds: 0,
  timeDelaySeconds: 0,
  whitelist: []
});

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

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

xhr.open('PUT', '{{baseUrl}}/origin_endpoints/:id');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/origin_endpoints/:id',
  headers: {'content-type': 'application/json'},
  data: {
    authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
    cmafPackage: {
      Encryption: '',
      HlsManifests: '',
      SegmentDurationSeconds: '',
      SegmentPrefix: '',
      StreamSelection: ''
    },
    dashPackage: {
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeIframeOnlyStream: '',
      ManifestLayout: '',
      ManifestWindowSeconds: '',
      MinBufferTimeSeconds: '',
      MinUpdatePeriodSeconds: '',
      PeriodTriggers: '',
      Profile: '',
      SegmentDurationSeconds: '',
      SegmentTemplateFormat: '',
      StreamSelection: '',
      SuggestedPresentationDelaySeconds: '',
      UtcTiming: '',
      UtcTimingUri: ''
    },
    description: '',
    hlsPackage: {
      AdMarkers: '',
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeDvbSubtitles: '',
      IncludeIframeOnlyStream: '',
      PlaylistType: '',
      PlaylistWindowSeconds: '',
      ProgramDateTimeIntervalSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: '',
      UseAudioRenditionGroup: ''
    },
    manifestName: '',
    mssPackage: {
      Encryption: '',
      ManifestWindowSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: ''
    },
    origination: '',
    startoverWindowSeconds: 0,
    timeDelaySeconds: 0,
    whitelist: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/origin_endpoints/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"authorization":{"CdnIdentifierSecret":"","SecretsRoleArn":""},"cmafPackage":{"Encryption":"","HlsManifests":"","SegmentDurationSeconds":"","SegmentPrefix":"","StreamSelection":""},"dashPackage":{"AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeIframeOnlyStream":"","ManifestLayout":"","ManifestWindowSeconds":"","MinBufferTimeSeconds":"","MinUpdatePeriodSeconds":"","PeriodTriggers":"","Profile":"","SegmentDurationSeconds":"","SegmentTemplateFormat":"","StreamSelection":"","SuggestedPresentationDelaySeconds":"","UtcTiming":"","UtcTimingUri":""},"description":"","hlsPackage":{"AdMarkers":"","AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeDvbSubtitles":"","IncludeIframeOnlyStream":"","PlaylistType":"","PlaylistWindowSeconds":"","ProgramDateTimeIntervalSeconds":"","SegmentDurationSeconds":"","StreamSelection":"","UseAudioRenditionGroup":""},"manifestName":"","mssPackage":{"Encryption":"","ManifestWindowSeconds":"","SegmentDurationSeconds":"","StreamSelection":""},"origination":"","startoverWindowSeconds":0,"timeDelaySeconds":0,"whitelist":[]}'
};

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}}/origin_endpoints/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "authorization": {\n    "CdnIdentifierSecret": "",\n    "SecretsRoleArn": ""\n  },\n  "cmafPackage": {\n    "Encryption": "",\n    "HlsManifests": "",\n    "SegmentDurationSeconds": "",\n    "SegmentPrefix": "",\n    "StreamSelection": ""\n  },\n  "dashPackage": {\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeIframeOnlyStream": "",\n    "ManifestLayout": "",\n    "ManifestWindowSeconds": "",\n    "MinBufferTimeSeconds": "",\n    "MinUpdatePeriodSeconds": "",\n    "PeriodTriggers": "",\n    "Profile": "",\n    "SegmentDurationSeconds": "",\n    "SegmentTemplateFormat": "",\n    "StreamSelection": "",\n    "SuggestedPresentationDelaySeconds": "",\n    "UtcTiming": "",\n    "UtcTimingUri": ""\n  },\n  "description": "",\n  "hlsPackage": {\n    "AdMarkers": "",\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeDvbSubtitles": "",\n    "IncludeIframeOnlyStream": "",\n    "PlaylistType": "",\n    "PlaylistWindowSeconds": "",\n    "ProgramDateTimeIntervalSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": "",\n    "UseAudioRenditionGroup": ""\n  },\n  "manifestName": "",\n  "mssPackage": {\n    "Encryption": "",\n    "ManifestWindowSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": ""\n  },\n  "origination": "",\n  "startoverWindowSeconds": 0,\n  "timeDelaySeconds": 0,\n  "whitelist": []\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/origin_endpoints/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/origin_endpoints/:id',
  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({
  authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
  cmafPackage: {
    Encryption: '',
    HlsManifests: '',
    SegmentDurationSeconds: '',
    SegmentPrefix: '',
    StreamSelection: ''
  },
  dashPackage: {
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeIframeOnlyStream: '',
    ManifestLayout: '',
    ManifestWindowSeconds: '',
    MinBufferTimeSeconds: '',
    MinUpdatePeriodSeconds: '',
    PeriodTriggers: '',
    Profile: '',
    SegmentDurationSeconds: '',
    SegmentTemplateFormat: '',
    StreamSelection: '',
    SuggestedPresentationDelaySeconds: '',
    UtcTiming: '',
    UtcTimingUri: ''
  },
  description: '',
  hlsPackage: {
    AdMarkers: '',
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeDvbSubtitles: '',
    IncludeIframeOnlyStream: '',
    PlaylistType: '',
    PlaylistWindowSeconds: '',
    ProgramDateTimeIntervalSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: '',
    UseAudioRenditionGroup: ''
  },
  manifestName: '',
  mssPackage: {
    Encryption: '',
    ManifestWindowSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: ''
  },
  origination: '',
  startoverWindowSeconds: 0,
  timeDelaySeconds: 0,
  whitelist: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/origin_endpoints/:id',
  headers: {'content-type': 'application/json'},
  body: {
    authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
    cmafPackage: {
      Encryption: '',
      HlsManifests: '',
      SegmentDurationSeconds: '',
      SegmentPrefix: '',
      StreamSelection: ''
    },
    dashPackage: {
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeIframeOnlyStream: '',
      ManifestLayout: '',
      ManifestWindowSeconds: '',
      MinBufferTimeSeconds: '',
      MinUpdatePeriodSeconds: '',
      PeriodTriggers: '',
      Profile: '',
      SegmentDurationSeconds: '',
      SegmentTemplateFormat: '',
      StreamSelection: '',
      SuggestedPresentationDelaySeconds: '',
      UtcTiming: '',
      UtcTimingUri: ''
    },
    description: '',
    hlsPackage: {
      AdMarkers: '',
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeDvbSubtitles: '',
      IncludeIframeOnlyStream: '',
      PlaylistType: '',
      PlaylistWindowSeconds: '',
      ProgramDateTimeIntervalSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: '',
      UseAudioRenditionGroup: ''
    },
    manifestName: '',
    mssPackage: {
      Encryption: '',
      ManifestWindowSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: ''
    },
    origination: '',
    startoverWindowSeconds: 0,
    timeDelaySeconds: 0,
    whitelist: []
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/origin_endpoints/:id');

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

req.type('json');
req.send({
  authorization: {
    CdnIdentifierSecret: '',
    SecretsRoleArn: ''
  },
  cmafPackage: {
    Encryption: '',
    HlsManifests: '',
    SegmentDurationSeconds: '',
    SegmentPrefix: '',
    StreamSelection: ''
  },
  dashPackage: {
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeIframeOnlyStream: '',
    ManifestLayout: '',
    ManifestWindowSeconds: '',
    MinBufferTimeSeconds: '',
    MinUpdatePeriodSeconds: '',
    PeriodTriggers: '',
    Profile: '',
    SegmentDurationSeconds: '',
    SegmentTemplateFormat: '',
    StreamSelection: '',
    SuggestedPresentationDelaySeconds: '',
    UtcTiming: '',
    UtcTimingUri: ''
  },
  description: '',
  hlsPackage: {
    AdMarkers: '',
    AdTriggers: '',
    AdsOnDeliveryRestrictions: '',
    Encryption: '',
    IncludeDvbSubtitles: '',
    IncludeIframeOnlyStream: '',
    PlaylistType: '',
    PlaylistWindowSeconds: '',
    ProgramDateTimeIntervalSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: '',
    UseAudioRenditionGroup: ''
  },
  manifestName: '',
  mssPackage: {
    Encryption: '',
    ManifestWindowSeconds: '',
    SegmentDurationSeconds: '',
    StreamSelection: ''
  },
  origination: '',
  startoverWindowSeconds: 0,
  timeDelaySeconds: 0,
  whitelist: []
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/origin_endpoints/:id',
  headers: {'content-type': 'application/json'},
  data: {
    authorization: {CdnIdentifierSecret: '', SecretsRoleArn: ''},
    cmafPackage: {
      Encryption: '',
      HlsManifests: '',
      SegmentDurationSeconds: '',
      SegmentPrefix: '',
      StreamSelection: ''
    },
    dashPackage: {
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeIframeOnlyStream: '',
      ManifestLayout: '',
      ManifestWindowSeconds: '',
      MinBufferTimeSeconds: '',
      MinUpdatePeriodSeconds: '',
      PeriodTriggers: '',
      Profile: '',
      SegmentDurationSeconds: '',
      SegmentTemplateFormat: '',
      StreamSelection: '',
      SuggestedPresentationDelaySeconds: '',
      UtcTiming: '',
      UtcTimingUri: ''
    },
    description: '',
    hlsPackage: {
      AdMarkers: '',
      AdTriggers: '',
      AdsOnDeliveryRestrictions: '',
      Encryption: '',
      IncludeDvbSubtitles: '',
      IncludeIframeOnlyStream: '',
      PlaylistType: '',
      PlaylistWindowSeconds: '',
      ProgramDateTimeIntervalSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: '',
      UseAudioRenditionGroup: ''
    },
    manifestName: '',
    mssPackage: {
      Encryption: '',
      ManifestWindowSeconds: '',
      SegmentDurationSeconds: '',
      StreamSelection: ''
    },
    origination: '',
    startoverWindowSeconds: 0,
    timeDelaySeconds: 0,
    whitelist: []
  }
};

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

const url = '{{baseUrl}}/origin_endpoints/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"authorization":{"CdnIdentifierSecret":"","SecretsRoleArn":""},"cmafPackage":{"Encryption":"","HlsManifests":"","SegmentDurationSeconds":"","SegmentPrefix":"","StreamSelection":""},"dashPackage":{"AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeIframeOnlyStream":"","ManifestLayout":"","ManifestWindowSeconds":"","MinBufferTimeSeconds":"","MinUpdatePeriodSeconds":"","PeriodTriggers":"","Profile":"","SegmentDurationSeconds":"","SegmentTemplateFormat":"","StreamSelection":"","SuggestedPresentationDelaySeconds":"","UtcTiming":"","UtcTimingUri":""},"description":"","hlsPackage":{"AdMarkers":"","AdTriggers":"","AdsOnDeliveryRestrictions":"","Encryption":"","IncludeDvbSubtitles":"","IncludeIframeOnlyStream":"","PlaylistType":"","PlaylistWindowSeconds":"","ProgramDateTimeIntervalSeconds":"","SegmentDurationSeconds":"","StreamSelection":"","UseAudioRenditionGroup":""},"manifestName":"","mssPackage":{"Encryption":"","ManifestWindowSeconds":"","SegmentDurationSeconds":"","StreamSelection":""},"origination":"","startoverWindowSeconds":0,"timeDelaySeconds":0,"whitelist":[]}'
};

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 = @{ @"authorization": @{ @"CdnIdentifierSecret": @"", @"SecretsRoleArn": @"" },
                              @"cmafPackage": @{ @"Encryption": @"", @"HlsManifests": @"", @"SegmentDurationSeconds": @"", @"SegmentPrefix": @"", @"StreamSelection": @"" },
                              @"dashPackage": @{ @"AdTriggers": @"", @"AdsOnDeliveryRestrictions": @"", @"Encryption": @"", @"IncludeIframeOnlyStream": @"", @"ManifestLayout": @"", @"ManifestWindowSeconds": @"", @"MinBufferTimeSeconds": @"", @"MinUpdatePeriodSeconds": @"", @"PeriodTriggers": @"", @"Profile": @"", @"SegmentDurationSeconds": @"", @"SegmentTemplateFormat": @"", @"StreamSelection": @"", @"SuggestedPresentationDelaySeconds": @"", @"UtcTiming": @"", @"UtcTimingUri": @"" },
                              @"description": @"",
                              @"hlsPackage": @{ @"AdMarkers": @"", @"AdTriggers": @"", @"AdsOnDeliveryRestrictions": @"", @"Encryption": @"", @"IncludeDvbSubtitles": @"", @"IncludeIframeOnlyStream": @"", @"PlaylistType": @"", @"PlaylistWindowSeconds": @"", @"ProgramDateTimeIntervalSeconds": @"", @"SegmentDurationSeconds": @"", @"StreamSelection": @"", @"UseAudioRenditionGroup": @"" },
                              @"manifestName": @"",
                              @"mssPackage": @{ @"Encryption": @"", @"ManifestWindowSeconds": @"", @"SegmentDurationSeconds": @"", @"StreamSelection": @"" },
                              @"origination": @"",
                              @"startoverWindowSeconds": @0,
                              @"timeDelaySeconds": @0,
                              @"whitelist": @[  ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/origin_endpoints/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/origin_endpoints/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/origin_endpoints/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'authorization' => [
        'CdnIdentifierSecret' => '',
        'SecretsRoleArn' => ''
    ],
    'cmafPackage' => [
        'Encryption' => '',
        'HlsManifests' => '',
        'SegmentDurationSeconds' => '',
        'SegmentPrefix' => '',
        'StreamSelection' => ''
    ],
    'dashPackage' => [
        'AdTriggers' => '',
        'AdsOnDeliveryRestrictions' => '',
        'Encryption' => '',
        'IncludeIframeOnlyStream' => '',
        'ManifestLayout' => '',
        'ManifestWindowSeconds' => '',
        'MinBufferTimeSeconds' => '',
        'MinUpdatePeriodSeconds' => '',
        'PeriodTriggers' => '',
        'Profile' => '',
        'SegmentDurationSeconds' => '',
        'SegmentTemplateFormat' => '',
        'StreamSelection' => '',
        'SuggestedPresentationDelaySeconds' => '',
        'UtcTiming' => '',
        'UtcTimingUri' => ''
    ],
    'description' => '',
    'hlsPackage' => [
        'AdMarkers' => '',
        'AdTriggers' => '',
        'AdsOnDeliveryRestrictions' => '',
        'Encryption' => '',
        'IncludeDvbSubtitles' => '',
        'IncludeIframeOnlyStream' => '',
        'PlaylistType' => '',
        'PlaylistWindowSeconds' => '',
        'ProgramDateTimeIntervalSeconds' => '',
        'SegmentDurationSeconds' => '',
        'StreamSelection' => '',
        'UseAudioRenditionGroup' => ''
    ],
    'manifestName' => '',
    'mssPackage' => [
        'Encryption' => '',
        'ManifestWindowSeconds' => '',
        'SegmentDurationSeconds' => '',
        'StreamSelection' => ''
    ],
    'origination' => '',
    'startoverWindowSeconds' => 0,
    'timeDelaySeconds' => 0,
    'whitelist' => [
        
    ]
  ]),
  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('PUT', '{{baseUrl}}/origin_endpoints/:id', [
  'body' => '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/origin_endpoints/:id');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'authorization' => [
    'CdnIdentifierSecret' => '',
    'SecretsRoleArn' => ''
  ],
  'cmafPackage' => [
    'Encryption' => '',
    'HlsManifests' => '',
    'SegmentDurationSeconds' => '',
    'SegmentPrefix' => '',
    'StreamSelection' => ''
  ],
  'dashPackage' => [
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeIframeOnlyStream' => '',
    'ManifestLayout' => '',
    'ManifestWindowSeconds' => '',
    'MinBufferTimeSeconds' => '',
    'MinUpdatePeriodSeconds' => '',
    'PeriodTriggers' => '',
    'Profile' => '',
    'SegmentDurationSeconds' => '',
    'SegmentTemplateFormat' => '',
    'StreamSelection' => '',
    'SuggestedPresentationDelaySeconds' => '',
    'UtcTiming' => '',
    'UtcTimingUri' => ''
  ],
  'description' => '',
  'hlsPackage' => [
    'AdMarkers' => '',
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeDvbSubtitles' => '',
    'IncludeIframeOnlyStream' => '',
    'PlaylistType' => '',
    'PlaylistWindowSeconds' => '',
    'ProgramDateTimeIntervalSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => '',
    'UseAudioRenditionGroup' => ''
  ],
  'manifestName' => '',
  'mssPackage' => [
    'Encryption' => '',
    'ManifestWindowSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => ''
  ],
  'origination' => '',
  'startoverWindowSeconds' => 0,
  'timeDelaySeconds' => 0,
  'whitelist' => [
    
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'authorization' => [
    'CdnIdentifierSecret' => '',
    'SecretsRoleArn' => ''
  ],
  'cmafPackage' => [
    'Encryption' => '',
    'HlsManifests' => '',
    'SegmentDurationSeconds' => '',
    'SegmentPrefix' => '',
    'StreamSelection' => ''
  ],
  'dashPackage' => [
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeIframeOnlyStream' => '',
    'ManifestLayout' => '',
    'ManifestWindowSeconds' => '',
    'MinBufferTimeSeconds' => '',
    'MinUpdatePeriodSeconds' => '',
    'PeriodTriggers' => '',
    'Profile' => '',
    'SegmentDurationSeconds' => '',
    'SegmentTemplateFormat' => '',
    'StreamSelection' => '',
    'SuggestedPresentationDelaySeconds' => '',
    'UtcTiming' => '',
    'UtcTimingUri' => ''
  ],
  'description' => '',
  'hlsPackage' => [
    'AdMarkers' => '',
    'AdTriggers' => '',
    'AdsOnDeliveryRestrictions' => '',
    'Encryption' => '',
    'IncludeDvbSubtitles' => '',
    'IncludeIframeOnlyStream' => '',
    'PlaylistType' => '',
    'PlaylistWindowSeconds' => '',
    'ProgramDateTimeIntervalSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => '',
    'UseAudioRenditionGroup' => ''
  ],
  'manifestName' => '',
  'mssPackage' => [
    'Encryption' => '',
    'ManifestWindowSeconds' => '',
    'SegmentDurationSeconds' => '',
    'StreamSelection' => ''
  ],
  'origination' => '',
  'startoverWindowSeconds' => 0,
  'timeDelaySeconds' => 0,
  'whitelist' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/origin_endpoints/:id');
$request->setRequestMethod('PUT');
$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}}/origin_endpoints/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/origin_endpoints/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
}'
import http.client

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

payload = "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}"

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

conn.request("PUT", "/baseUrl/origin_endpoints/:id", payload, headers)

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

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

url = "{{baseUrl}}/origin_endpoints/:id"

payload = {
    "authorization": {
        "CdnIdentifierSecret": "",
        "SecretsRoleArn": ""
    },
    "cmafPackage": {
        "Encryption": "",
        "HlsManifests": "",
        "SegmentDurationSeconds": "",
        "SegmentPrefix": "",
        "StreamSelection": ""
    },
    "dashPackage": {
        "AdTriggers": "",
        "AdsOnDeliveryRestrictions": "",
        "Encryption": "",
        "IncludeIframeOnlyStream": "",
        "ManifestLayout": "",
        "ManifestWindowSeconds": "",
        "MinBufferTimeSeconds": "",
        "MinUpdatePeriodSeconds": "",
        "PeriodTriggers": "",
        "Profile": "",
        "SegmentDurationSeconds": "",
        "SegmentTemplateFormat": "",
        "StreamSelection": "",
        "SuggestedPresentationDelaySeconds": "",
        "UtcTiming": "",
        "UtcTimingUri": ""
    },
    "description": "",
    "hlsPackage": {
        "AdMarkers": "",
        "AdTriggers": "",
        "AdsOnDeliveryRestrictions": "",
        "Encryption": "",
        "IncludeDvbSubtitles": "",
        "IncludeIframeOnlyStream": "",
        "PlaylistType": "",
        "PlaylistWindowSeconds": "",
        "ProgramDateTimeIntervalSeconds": "",
        "SegmentDurationSeconds": "",
        "StreamSelection": "",
        "UseAudioRenditionGroup": ""
    },
    "manifestName": "",
    "mssPackage": {
        "Encryption": "",
        "ManifestWindowSeconds": "",
        "SegmentDurationSeconds": "",
        "StreamSelection": ""
    },
    "origination": "",
    "startoverWindowSeconds": 0,
    "timeDelaySeconds": 0,
    "whitelist": []
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/origin_endpoints/:id"

payload <- "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/origin_endpoints/:id")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\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.put('/baseUrl/origin_endpoints/:id') do |req|
  req.body = "{\n  \"authorization\": {\n    \"CdnIdentifierSecret\": \"\",\n    \"SecretsRoleArn\": \"\"\n  },\n  \"cmafPackage\": {\n    \"Encryption\": \"\",\n    \"HlsManifests\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentPrefix\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"dashPackage\": {\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"ManifestLayout\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"MinBufferTimeSeconds\": \"\",\n    \"MinUpdatePeriodSeconds\": \"\",\n    \"PeriodTriggers\": \"\",\n    \"Profile\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"SegmentTemplateFormat\": \"\",\n    \"StreamSelection\": \"\",\n    \"SuggestedPresentationDelaySeconds\": \"\",\n    \"UtcTiming\": \"\",\n    \"UtcTimingUri\": \"\"\n  },\n  \"description\": \"\",\n  \"hlsPackage\": {\n    \"AdMarkers\": \"\",\n    \"AdTriggers\": \"\",\n    \"AdsOnDeliveryRestrictions\": \"\",\n    \"Encryption\": \"\",\n    \"IncludeDvbSubtitles\": \"\",\n    \"IncludeIframeOnlyStream\": \"\",\n    \"PlaylistType\": \"\",\n    \"PlaylistWindowSeconds\": \"\",\n    \"ProgramDateTimeIntervalSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\",\n    \"UseAudioRenditionGroup\": \"\"\n  },\n  \"manifestName\": \"\",\n  \"mssPackage\": {\n    \"Encryption\": \"\",\n    \"ManifestWindowSeconds\": \"\",\n    \"SegmentDurationSeconds\": \"\",\n    \"StreamSelection\": \"\"\n  },\n  \"origination\": \"\",\n  \"startoverWindowSeconds\": 0,\n  \"timeDelaySeconds\": 0,\n  \"whitelist\": []\n}"
end

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

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

    let payload = json!({
        "authorization": json!({
            "CdnIdentifierSecret": "",
            "SecretsRoleArn": ""
        }),
        "cmafPackage": json!({
            "Encryption": "",
            "HlsManifests": "",
            "SegmentDurationSeconds": "",
            "SegmentPrefix": "",
            "StreamSelection": ""
        }),
        "dashPackage": json!({
            "AdTriggers": "",
            "AdsOnDeliveryRestrictions": "",
            "Encryption": "",
            "IncludeIframeOnlyStream": "",
            "ManifestLayout": "",
            "ManifestWindowSeconds": "",
            "MinBufferTimeSeconds": "",
            "MinUpdatePeriodSeconds": "",
            "PeriodTriggers": "",
            "Profile": "",
            "SegmentDurationSeconds": "",
            "SegmentTemplateFormat": "",
            "StreamSelection": "",
            "SuggestedPresentationDelaySeconds": "",
            "UtcTiming": "",
            "UtcTimingUri": ""
        }),
        "description": "",
        "hlsPackage": json!({
            "AdMarkers": "",
            "AdTriggers": "",
            "AdsOnDeliveryRestrictions": "",
            "Encryption": "",
            "IncludeDvbSubtitles": "",
            "IncludeIframeOnlyStream": "",
            "PlaylistType": "",
            "PlaylistWindowSeconds": "",
            "ProgramDateTimeIntervalSeconds": "",
            "SegmentDurationSeconds": "",
            "StreamSelection": "",
            "UseAudioRenditionGroup": ""
        }),
        "manifestName": "",
        "mssPackage": json!({
            "Encryption": "",
            "ManifestWindowSeconds": "",
            "SegmentDurationSeconds": "",
            "StreamSelection": ""
        }),
        "origination": "",
        "startoverWindowSeconds": 0,
        "timeDelaySeconds": 0,
        "whitelist": ()
    });

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

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/origin_endpoints/:id \
  --header 'content-type: application/json' \
  --data '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
}'
echo '{
  "authorization": {
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  },
  "cmafPackage": {
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  },
  "dashPackage": {
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  },
  "description": "",
  "hlsPackage": {
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  },
  "manifestName": "",
  "mssPackage": {
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  },
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
}' |  \
  http PUT {{baseUrl}}/origin_endpoints/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "authorization": {\n    "CdnIdentifierSecret": "",\n    "SecretsRoleArn": ""\n  },\n  "cmafPackage": {\n    "Encryption": "",\n    "HlsManifests": "",\n    "SegmentDurationSeconds": "",\n    "SegmentPrefix": "",\n    "StreamSelection": ""\n  },\n  "dashPackage": {\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeIframeOnlyStream": "",\n    "ManifestLayout": "",\n    "ManifestWindowSeconds": "",\n    "MinBufferTimeSeconds": "",\n    "MinUpdatePeriodSeconds": "",\n    "PeriodTriggers": "",\n    "Profile": "",\n    "SegmentDurationSeconds": "",\n    "SegmentTemplateFormat": "",\n    "StreamSelection": "",\n    "SuggestedPresentationDelaySeconds": "",\n    "UtcTiming": "",\n    "UtcTimingUri": ""\n  },\n  "description": "",\n  "hlsPackage": {\n    "AdMarkers": "",\n    "AdTriggers": "",\n    "AdsOnDeliveryRestrictions": "",\n    "Encryption": "",\n    "IncludeDvbSubtitles": "",\n    "IncludeIframeOnlyStream": "",\n    "PlaylistType": "",\n    "PlaylistWindowSeconds": "",\n    "ProgramDateTimeIntervalSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": "",\n    "UseAudioRenditionGroup": ""\n  },\n  "manifestName": "",\n  "mssPackage": {\n    "Encryption": "",\n    "ManifestWindowSeconds": "",\n    "SegmentDurationSeconds": "",\n    "StreamSelection": ""\n  },\n  "origination": "",\n  "startoverWindowSeconds": 0,\n  "timeDelaySeconds": 0,\n  "whitelist": []\n}' \
  --output-document \
  - {{baseUrl}}/origin_endpoints/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "authorization": [
    "CdnIdentifierSecret": "",
    "SecretsRoleArn": ""
  ],
  "cmafPackage": [
    "Encryption": "",
    "HlsManifests": "",
    "SegmentDurationSeconds": "",
    "SegmentPrefix": "",
    "StreamSelection": ""
  ],
  "dashPackage": [
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeIframeOnlyStream": "",
    "ManifestLayout": "",
    "ManifestWindowSeconds": "",
    "MinBufferTimeSeconds": "",
    "MinUpdatePeriodSeconds": "",
    "PeriodTriggers": "",
    "Profile": "",
    "SegmentDurationSeconds": "",
    "SegmentTemplateFormat": "",
    "StreamSelection": "",
    "SuggestedPresentationDelaySeconds": "",
    "UtcTiming": "",
    "UtcTimingUri": ""
  ],
  "description": "",
  "hlsPackage": [
    "AdMarkers": "",
    "AdTriggers": "",
    "AdsOnDeliveryRestrictions": "",
    "Encryption": "",
    "IncludeDvbSubtitles": "",
    "IncludeIframeOnlyStream": "",
    "PlaylistType": "",
    "PlaylistWindowSeconds": "",
    "ProgramDateTimeIntervalSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": "",
    "UseAudioRenditionGroup": ""
  ],
  "manifestName": "",
  "mssPackage": [
    "Encryption": "",
    "ManifestWindowSeconds": "",
    "SegmentDurationSeconds": "",
    "StreamSelection": ""
  ],
  "origination": "",
  "startoverWindowSeconds": 0,
  "timeDelaySeconds": 0,
  "whitelist": []
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/origin_endpoints/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()