POST Manually refreshes the JWT JWKS.
{{baseUrl}}/v3/auth/jwks/refresh
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/auth/jwks/refresh");

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

(client/post "{{baseUrl}}/v3/auth/jwks/refresh")
require "http/client"

url = "{{baseUrl}}/v3/auth/jwks/refresh"

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

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

func main() {

	url := "{{baseUrl}}/v3/auth/jwks/refresh"

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

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

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

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

}
POST /baseUrl/v3/auth/jwks/refresh HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/auth/jwks/refresh")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/auth/jwks/refresh"))
    .method("POST", 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}}/v3/auth/jwks/refresh")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/auth/jwks/refresh")
  .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('POST', '{{baseUrl}}/v3/auth/jwks/refresh');

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

const options = {method: 'POST', url: '{{baseUrl}}/v3/auth/jwks/refresh'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/auth/jwks/refresh';
const options = {method: 'POST'};

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}}/v3/auth/jwks/refresh',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/auth/jwks/refresh")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/auth/jwks/refresh',
  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: 'POST', url: '{{baseUrl}}/v3/auth/jwks/refresh'};

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

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

const req = unirest('POST', '{{baseUrl}}/v3/auth/jwks/refresh');

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}}/v3/auth/jwks/refresh'};

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

const url = '{{baseUrl}}/v3/auth/jwks/refresh';
const options = {method: 'POST'};

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}}/v3/auth/jwks/refresh"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v3/auth/jwks/refresh" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/auth/jwks/refresh');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/auth/jwks/refresh');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/auth/jwks/refresh');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/auth/jwks/refresh' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/auth/jwks/refresh' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/v3/auth/jwks/refresh")

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

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

url = "{{baseUrl}}/v3/auth/jwks/refresh"

response = requests.post(url)

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

url <- "{{baseUrl}}/v3/auth/jwks/refresh"

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

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

url = URI("{{baseUrl}}/v3/auth/jwks/refresh")

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

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

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

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

response = conn.post('/baseUrl/v3/auth/jwks/refresh') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/auth/jwks/refresh
http POST {{baseUrl}}/v3/auth/jwks/refresh
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v3/auth/jwks/refresh
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/auth/jwks/refresh")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 adds a path configuration.
{{baseUrl}}/v3/config/paths/add/:name
QUERY PARAMS

name
BODY json

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/paths/add/:name");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");

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

(client/post "{{baseUrl}}/v3/config/paths/add/:name" {:content-type :json
                                                                      :form-params {:name ""
                                                                                    :source ""
                                                                                    :sourceFingerprint ""
                                                                                    :sourceOnDemand false
                                                                                    :sourceOnDemandStartTimeout ""
                                                                                    :sourceOnDemandCloseAfter ""
                                                                                    :maxReaders 0
                                                                                    :srtReadPassphrase ""
                                                                                    :fallback ""
                                                                                    :useAbsoluteTimestamp false
                                                                                    :record false
                                                                                    :recordPath ""
                                                                                    :recordFormat ""
                                                                                    :recordPartDuration ""
                                                                                    :recordMaxPartSize ""
                                                                                    :recordSegmentDuration ""
                                                                                    :recordDeleteAfter ""
                                                                                    :overridePublisher false
                                                                                    :srtPublishPassphrase ""
                                                                                    :rtspTransport ""
                                                                                    :rtspAnyPort false
                                                                                    :rtspRangeType ""
                                                                                    :rtspRangeStart ""
                                                                                    :rtpSDP ""
                                                                                    :sourceRedirect ""
                                                                                    :rpiCameraCamID 0
                                                                                    :rpiCameraSecondary false
                                                                                    :rpiCameraWidth 0
                                                                                    :rpiCameraHeight 0
                                                                                    :rpiCameraHFlip false
                                                                                    :rpiCameraVFlip false
                                                                                    :rpiCameraBrightness ""
                                                                                    :rpiCameraContrast ""
                                                                                    :rpiCameraSaturation ""
                                                                                    :rpiCameraSharpness ""
                                                                                    :rpiCameraExposure ""
                                                                                    :rpiCameraAWB ""
                                                                                    :rpiCameraAWBGains []
                                                                                    :rpiCameraDenoise ""
                                                                                    :rpiCameraShutter 0
                                                                                    :rpiCameraMetering ""
                                                                                    :rpiCameraGain ""
                                                                                    :rpiCameraEV ""
                                                                                    :rpiCameraROI ""
                                                                                    :rpiCameraHDR false
                                                                                    :rpiCameraTuningFile ""
                                                                                    :rpiCameraMode ""
                                                                                    :rpiCameraFPS ""
                                                                                    :rpiCameraAfMode ""
                                                                                    :rpiCameraAfRange ""
                                                                                    :rpiCameraAfSpeed ""
                                                                                    :rpiCameraLensPosition ""
                                                                                    :rpiCameraAfWindow ""
                                                                                    :rpiCameraFlickerPeriod 0
                                                                                    :rpiCameraTextOverlayEnable false
                                                                                    :rpiCameraTextOverlay ""
                                                                                    :rpiCameraCodec ""
                                                                                    :rpiCameraIDRPeriod 0
                                                                                    :rpiCameraBitrate 0
                                                                                    :rpiCameraHardwareH264Profile ""
                                                                                    :rpiCameraHardwareH264Level ""
                                                                                    :rpiCameraSoftwareH264Profile ""
                                                                                    :rpiCameraSoftwareH264Level ""
                                                                                    :rpiCameraMJPEGQuality 0
                                                                                    :runOnInit ""
                                                                                    :runOnInitRestart false
                                                                                    :runOnDemand ""
                                                                                    :runOnDemandRestart false
                                                                                    :runOnDemandStartTimeout ""
                                                                                    :runOnDemandCloseAfter ""
                                                                                    :runOnUnDemand ""
                                                                                    :runOnReady ""
                                                                                    :runOnReadyRestart false
                                                                                    :runOnNotReady ""
                                                                                    :runOnRead ""
                                                                                    :runOnReadRestart false
                                                                                    :runOnUnread ""
                                                                                    :runOnRecordSegmentCreate ""
                                                                                    :runOnRecordSegmentComplete ""}})
require "http/client"

url = "{{baseUrl}}/v3/config/paths/add/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/add/:name"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/add/:name");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/config/paths/add/:name"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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/v3/config/paths/add/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2096

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/config/paths/add/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/config/paths/add/:name"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/add/:name")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/config/paths/add/:name")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/config/paths/add/:name');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/config/paths/add/:name',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/config/paths/add/:name';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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}}/v3/config/paths/add/:name',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/add/:name")
  .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/v3/config/paths/add/:name',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/config/paths/add/:name',
  headers: {'content-type': 'application/json'},
  body: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  },
  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}}/v3/config/paths/add/:name');

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

req.type('json');
req.send({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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}}/v3/config/paths/add/:name',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

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

const url = '{{baseUrl}}/v3/config/paths/add/:name';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
                              @"source": @"",
                              @"sourceFingerprint": @"",
                              @"sourceOnDemand": @NO,
                              @"sourceOnDemandStartTimeout": @"",
                              @"sourceOnDemandCloseAfter": @"",
                              @"maxReaders": @0,
                              @"srtReadPassphrase": @"",
                              @"fallback": @"",
                              @"useAbsoluteTimestamp": @NO,
                              @"record": @NO,
                              @"recordPath": @"",
                              @"recordFormat": @"",
                              @"recordPartDuration": @"",
                              @"recordMaxPartSize": @"",
                              @"recordSegmentDuration": @"",
                              @"recordDeleteAfter": @"",
                              @"overridePublisher": @NO,
                              @"srtPublishPassphrase": @"",
                              @"rtspTransport": @"",
                              @"rtspAnyPort": @NO,
                              @"rtspRangeType": @"",
                              @"rtspRangeStart": @"",
                              @"rtpSDP": @"",
                              @"sourceRedirect": @"",
                              @"rpiCameraCamID": @0,
                              @"rpiCameraSecondary": @NO,
                              @"rpiCameraWidth": @0,
                              @"rpiCameraHeight": @0,
                              @"rpiCameraHFlip": @NO,
                              @"rpiCameraVFlip": @NO,
                              @"rpiCameraBrightness": @"",
                              @"rpiCameraContrast": @"",
                              @"rpiCameraSaturation": @"",
                              @"rpiCameraSharpness": @"",
                              @"rpiCameraExposure": @"",
                              @"rpiCameraAWB": @"",
                              @"rpiCameraAWBGains": @[  ],
                              @"rpiCameraDenoise": @"",
                              @"rpiCameraShutter": @0,
                              @"rpiCameraMetering": @"",
                              @"rpiCameraGain": @"",
                              @"rpiCameraEV": @"",
                              @"rpiCameraROI": @"",
                              @"rpiCameraHDR": @NO,
                              @"rpiCameraTuningFile": @"",
                              @"rpiCameraMode": @"",
                              @"rpiCameraFPS": @"",
                              @"rpiCameraAfMode": @"",
                              @"rpiCameraAfRange": @"",
                              @"rpiCameraAfSpeed": @"",
                              @"rpiCameraLensPosition": @"",
                              @"rpiCameraAfWindow": @"",
                              @"rpiCameraFlickerPeriod": @0,
                              @"rpiCameraTextOverlayEnable": @NO,
                              @"rpiCameraTextOverlay": @"",
                              @"rpiCameraCodec": @"",
                              @"rpiCameraIDRPeriod": @0,
                              @"rpiCameraBitrate": @0,
                              @"rpiCameraHardwareH264Profile": @"",
                              @"rpiCameraHardwareH264Level": @"",
                              @"rpiCameraSoftwareH264Profile": @"",
                              @"rpiCameraSoftwareH264Level": @"",
                              @"rpiCameraMJPEGQuality": @0,
                              @"runOnInit": @"",
                              @"runOnInitRestart": @NO,
                              @"runOnDemand": @"",
                              @"runOnDemandRestart": @NO,
                              @"runOnDemandStartTimeout": @"",
                              @"runOnDemandCloseAfter": @"",
                              @"runOnUnDemand": @"",
                              @"runOnReady": @"",
                              @"runOnReadyRestart": @NO,
                              @"runOnNotReady": @"",
                              @"runOnRead": @"",
                              @"runOnReadRestart": @NO,
                              @"runOnUnread": @"",
                              @"runOnRecordSegmentCreate": @"",
                              @"runOnRecordSegmentComplete": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/config/paths/add/:name"]
                                                       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}}/v3/config/paths/add/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/config/paths/add/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '',
    'source' => '',
    'sourceFingerprint' => '',
    'sourceOnDemand' => null,
    'sourceOnDemandStartTimeout' => '',
    'sourceOnDemandCloseAfter' => '',
    'maxReaders' => 0,
    'srtReadPassphrase' => '',
    'fallback' => '',
    'useAbsoluteTimestamp' => null,
    'record' => null,
    'recordPath' => '',
    'recordFormat' => '',
    'recordPartDuration' => '',
    'recordMaxPartSize' => '',
    'recordSegmentDuration' => '',
    'recordDeleteAfter' => '',
    'overridePublisher' => null,
    'srtPublishPassphrase' => '',
    'rtspTransport' => '',
    'rtspAnyPort' => null,
    'rtspRangeType' => '',
    'rtspRangeStart' => '',
    'rtpSDP' => '',
    'sourceRedirect' => '',
    'rpiCameraCamID' => 0,
    'rpiCameraSecondary' => null,
    'rpiCameraWidth' => 0,
    'rpiCameraHeight' => 0,
    'rpiCameraHFlip' => null,
    'rpiCameraVFlip' => null,
    'rpiCameraBrightness' => '',
    'rpiCameraContrast' => '',
    'rpiCameraSaturation' => '',
    'rpiCameraSharpness' => '',
    'rpiCameraExposure' => '',
    'rpiCameraAWB' => '',
    'rpiCameraAWBGains' => [
        
    ],
    'rpiCameraDenoise' => '',
    'rpiCameraShutter' => 0,
    'rpiCameraMetering' => '',
    'rpiCameraGain' => '',
    'rpiCameraEV' => '',
    'rpiCameraROI' => '',
    'rpiCameraHDR' => null,
    'rpiCameraTuningFile' => '',
    'rpiCameraMode' => '',
    'rpiCameraFPS' => '',
    'rpiCameraAfMode' => '',
    'rpiCameraAfRange' => '',
    'rpiCameraAfSpeed' => '',
    'rpiCameraLensPosition' => '',
    'rpiCameraAfWindow' => '',
    'rpiCameraFlickerPeriod' => 0,
    'rpiCameraTextOverlayEnable' => null,
    'rpiCameraTextOverlay' => '',
    'rpiCameraCodec' => '',
    'rpiCameraIDRPeriod' => 0,
    'rpiCameraBitrate' => 0,
    'rpiCameraHardwareH264Profile' => '',
    'rpiCameraHardwareH264Level' => '',
    'rpiCameraSoftwareH264Profile' => '',
    'rpiCameraSoftwareH264Level' => '',
    'rpiCameraMJPEGQuality' => 0,
    'runOnInit' => '',
    'runOnInitRestart' => null,
    'runOnDemand' => '',
    'runOnDemandRestart' => null,
    'runOnDemandStartTimeout' => '',
    'runOnDemandCloseAfter' => '',
    'runOnUnDemand' => '',
    'runOnReady' => '',
    'runOnReadyRestart' => null,
    'runOnNotReady' => '',
    'runOnRead' => '',
    'runOnReadRestart' => null,
    'runOnUnread' => '',
    'runOnRecordSegmentCreate' => '',
    'runOnRecordSegmentComplete' => ''
  ]),
  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}}/v3/config/paths/add/:name', [
  'body' => '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/paths/add/:name');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/config/paths/add/:name');
$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}}/v3/config/paths/add/:name' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/config/paths/add/:name' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
import http.client

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

payload = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v3/config/paths/add/:name", payload, headers)

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

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

url = "{{baseUrl}}/v3/config/paths/add/:name"

payload = {
    "name": "",
    "source": "",
    "sourceFingerprint": "",
    "sourceOnDemand": False,
    "sourceOnDemandStartTimeout": "",
    "sourceOnDemandCloseAfter": "",
    "maxReaders": 0,
    "srtReadPassphrase": "",
    "fallback": "",
    "useAbsoluteTimestamp": False,
    "record": False,
    "recordPath": "",
    "recordFormat": "",
    "recordPartDuration": "",
    "recordMaxPartSize": "",
    "recordSegmentDuration": "",
    "recordDeleteAfter": "",
    "overridePublisher": False,
    "srtPublishPassphrase": "",
    "rtspTransport": "",
    "rtspAnyPort": False,
    "rtspRangeType": "",
    "rtspRangeStart": "",
    "rtpSDP": "",
    "sourceRedirect": "",
    "rpiCameraCamID": 0,
    "rpiCameraSecondary": False,
    "rpiCameraWidth": 0,
    "rpiCameraHeight": 0,
    "rpiCameraHFlip": False,
    "rpiCameraVFlip": False,
    "rpiCameraBrightness": "",
    "rpiCameraContrast": "",
    "rpiCameraSaturation": "",
    "rpiCameraSharpness": "",
    "rpiCameraExposure": "",
    "rpiCameraAWB": "",
    "rpiCameraAWBGains": [],
    "rpiCameraDenoise": "",
    "rpiCameraShutter": 0,
    "rpiCameraMetering": "",
    "rpiCameraGain": "",
    "rpiCameraEV": "",
    "rpiCameraROI": "",
    "rpiCameraHDR": False,
    "rpiCameraTuningFile": "",
    "rpiCameraMode": "",
    "rpiCameraFPS": "",
    "rpiCameraAfMode": "",
    "rpiCameraAfRange": "",
    "rpiCameraAfSpeed": "",
    "rpiCameraLensPosition": "",
    "rpiCameraAfWindow": "",
    "rpiCameraFlickerPeriod": 0,
    "rpiCameraTextOverlayEnable": False,
    "rpiCameraTextOverlay": "",
    "rpiCameraCodec": "",
    "rpiCameraIDRPeriod": 0,
    "rpiCameraBitrate": 0,
    "rpiCameraHardwareH264Profile": "",
    "rpiCameraHardwareH264Level": "",
    "rpiCameraSoftwareH264Profile": "",
    "rpiCameraSoftwareH264Level": "",
    "rpiCameraMJPEGQuality": 0,
    "runOnInit": "",
    "runOnInitRestart": False,
    "runOnDemand": "",
    "runOnDemandRestart": False,
    "runOnDemandStartTimeout": "",
    "runOnDemandCloseAfter": "",
    "runOnUnDemand": "",
    "runOnReady": "",
    "runOnReadyRestart": False,
    "runOnNotReady": "",
    "runOnRead": "",
    "runOnReadRestart": False,
    "runOnUnread": "",
    "runOnRecordSegmentCreate": "",
    "runOnRecordSegmentComplete": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/config/paths/add/:name"

payload <- "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/add/:name")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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/v3/config/paths/add/:name') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/config/paths/add/:name";

    let payload = json!({
        "name": "",
        "source": "",
        "sourceFingerprint": "",
        "sourceOnDemand": false,
        "sourceOnDemandStartTimeout": "",
        "sourceOnDemandCloseAfter": "",
        "maxReaders": 0,
        "srtReadPassphrase": "",
        "fallback": "",
        "useAbsoluteTimestamp": false,
        "record": false,
        "recordPath": "",
        "recordFormat": "",
        "recordPartDuration": "",
        "recordMaxPartSize": "",
        "recordSegmentDuration": "",
        "recordDeleteAfter": "",
        "overridePublisher": false,
        "srtPublishPassphrase": "",
        "rtspTransport": "",
        "rtspAnyPort": false,
        "rtspRangeType": "",
        "rtspRangeStart": "",
        "rtpSDP": "",
        "sourceRedirect": "",
        "rpiCameraCamID": 0,
        "rpiCameraSecondary": false,
        "rpiCameraWidth": 0,
        "rpiCameraHeight": 0,
        "rpiCameraHFlip": false,
        "rpiCameraVFlip": false,
        "rpiCameraBrightness": "",
        "rpiCameraContrast": "",
        "rpiCameraSaturation": "",
        "rpiCameraSharpness": "",
        "rpiCameraExposure": "",
        "rpiCameraAWB": "",
        "rpiCameraAWBGains": (),
        "rpiCameraDenoise": "",
        "rpiCameraShutter": 0,
        "rpiCameraMetering": "",
        "rpiCameraGain": "",
        "rpiCameraEV": "",
        "rpiCameraROI": "",
        "rpiCameraHDR": false,
        "rpiCameraTuningFile": "",
        "rpiCameraMode": "",
        "rpiCameraFPS": "",
        "rpiCameraAfMode": "",
        "rpiCameraAfRange": "",
        "rpiCameraAfSpeed": "",
        "rpiCameraLensPosition": "",
        "rpiCameraAfWindow": "",
        "rpiCameraFlickerPeriod": 0,
        "rpiCameraTextOverlayEnable": false,
        "rpiCameraTextOverlay": "",
        "rpiCameraCodec": "",
        "rpiCameraIDRPeriod": 0,
        "rpiCameraBitrate": 0,
        "rpiCameraHardwareH264Profile": "",
        "rpiCameraHardwareH264Level": "",
        "rpiCameraSoftwareH264Profile": "",
        "rpiCameraSoftwareH264Level": "",
        "rpiCameraMJPEGQuality": 0,
        "runOnInit": "",
        "runOnInitRestart": false,
        "runOnDemand": "",
        "runOnDemandRestart": false,
        "runOnDemandStartTimeout": "",
        "runOnDemandCloseAfter": "",
        "runOnUnDemand": "",
        "runOnReady": "",
        "runOnReadyRestart": false,
        "runOnNotReady": "",
        "runOnRead": "",
        "runOnReadRestart": false,
        "runOnUnread": "",
        "runOnRecordSegmentCreate": "",
        "runOnRecordSegmentComplete": ""
    });

    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}}/v3/config/paths/add/:name \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
echo '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}' |  \
  http POST {{baseUrl}}/v3/config/paths/add/:name \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/config/paths/add/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/paths/add/:name")! 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()
PATCH patches a path configuration.
{{baseUrl}}/v3/config/paths/patch/:name
QUERY PARAMS

name
BODY json

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/paths/patch/:name");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v3/config/paths/patch/:name" {:content-type :json
                                                                         :form-params {:name ""
                                                                                       :source ""
                                                                                       :sourceFingerprint ""
                                                                                       :sourceOnDemand false
                                                                                       :sourceOnDemandStartTimeout ""
                                                                                       :sourceOnDemandCloseAfter ""
                                                                                       :maxReaders 0
                                                                                       :srtReadPassphrase ""
                                                                                       :fallback ""
                                                                                       :useAbsoluteTimestamp false
                                                                                       :record false
                                                                                       :recordPath ""
                                                                                       :recordFormat ""
                                                                                       :recordPartDuration ""
                                                                                       :recordMaxPartSize ""
                                                                                       :recordSegmentDuration ""
                                                                                       :recordDeleteAfter ""
                                                                                       :overridePublisher false
                                                                                       :srtPublishPassphrase ""
                                                                                       :rtspTransport ""
                                                                                       :rtspAnyPort false
                                                                                       :rtspRangeType ""
                                                                                       :rtspRangeStart ""
                                                                                       :rtpSDP ""
                                                                                       :sourceRedirect ""
                                                                                       :rpiCameraCamID 0
                                                                                       :rpiCameraSecondary false
                                                                                       :rpiCameraWidth 0
                                                                                       :rpiCameraHeight 0
                                                                                       :rpiCameraHFlip false
                                                                                       :rpiCameraVFlip false
                                                                                       :rpiCameraBrightness ""
                                                                                       :rpiCameraContrast ""
                                                                                       :rpiCameraSaturation ""
                                                                                       :rpiCameraSharpness ""
                                                                                       :rpiCameraExposure ""
                                                                                       :rpiCameraAWB ""
                                                                                       :rpiCameraAWBGains []
                                                                                       :rpiCameraDenoise ""
                                                                                       :rpiCameraShutter 0
                                                                                       :rpiCameraMetering ""
                                                                                       :rpiCameraGain ""
                                                                                       :rpiCameraEV ""
                                                                                       :rpiCameraROI ""
                                                                                       :rpiCameraHDR false
                                                                                       :rpiCameraTuningFile ""
                                                                                       :rpiCameraMode ""
                                                                                       :rpiCameraFPS ""
                                                                                       :rpiCameraAfMode ""
                                                                                       :rpiCameraAfRange ""
                                                                                       :rpiCameraAfSpeed ""
                                                                                       :rpiCameraLensPosition ""
                                                                                       :rpiCameraAfWindow ""
                                                                                       :rpiCameraFlickerPeriod 0
                                                                                       :rpiCameraTextOverlayEnable false
                                                                                       :rpiCameraTextOverlay ""
                                                                                       :rpiCameraCodec ""
                                                                                       :rpiCameraIDRPeriod 0
                                                                                       :rpiCameraBitrate 0
                                                                                       :rpiCameraHardwareH264Profile ""
                                                                                       :rpiCameraHardwareH264Level ""
                                                                                       :rpiCameraSoftwareH264Profile ""
                                                                                       :rpiCameraSoftwareH264Level ""
                                                                                       :rpiCameraMJPEGQuality 0
                                                                                       :runOnInit ""
                                                                                       :runOnInitRestart false
                                                                                       :runOnDemand ""
                                                                                       :runOnDemandRestart false
                                                                                       :runOnDemandStartTimeout ""
                                                                                       :runOnDemandCloseAfter ""
                                                                                       :runOnUnDemand ""
                                                                                       :runOnReady ""
                                                                                       :runOnReadyRestart false
                                                                                       :runOnNotReady ""
                                                                                       :runOnRead ""
                                                                                       :runOnReadRestart false
                                                                                       :runOnUnread ""
                                                                                       :runOnRecordSegmentCreate ""
                                                                                       :runOnRecordSegmentComplete ""}})
require "http/client"

url = "{{baseUrl}}/v3/config/paths/patch/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v3/config/paths/patch/:name"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/patch/:name");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/config/paths/patch/:name"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")

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

}
PATCH /baseUrl/v3/config/paths/patch/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2096

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v3/config/paths/patch/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/config/paths/patch/:name"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/patch/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v3/config/paths/patch/:name")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v3/config/paths/patch/:name');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/paths/patch/:name',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/config/paths/patch/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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}}/v3/config/paths/patch/:name',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/patch/:name")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/config/paths/patch/:name',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/paths/patch/:name',
  headers: {'content-type': 'application/json'},
  body: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/v3/config/paths/patch/:name');

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

req.type('json');
req.send({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/paths/patch/:name',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

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

const url = '{{baseUrl}}/v3/config/paths/patch/:name';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
                              @"source": @"",
                              @"sourceFingerprint": @"",
                              @"sourceOnDemand": @NO,
                              @"sourceOnDemandStartTimeout": @"",
                              @"sourceOnDemandCloseAfter": @"",
                              @"maxReaders": @0,
                              @"srtReadPassphrase": @"",
                              @"fallback": @"",
                              @"useAbsoluteTimestamp": @NO,
                              @"record": @NO,
                              @"recordPath": @"",
                              @"recordFormat": @"",
                              @"recordPartDuration": @"",
                              @"recordMaxPartSize": @"",
                              @"recordSegmentDuration": @"",
                              @"recordDeleteAfter": @"",
                              @"overridePublisher": @NO,
                              @"srtPublishPassphrase": @"",
                              @"rtspTransport": @"",
                              @"rtspAnyPort": @NO,
                              @"rtspRangeType": @"",
                              @"rtspRangeStart": @"",
                              @"rtpSDP": @"",
                              @"sourceRedirect": @"",
                              @"rpiCameraCamID": @0,
                              @"rpiCameraSecondary": @NO,
                              @"rpiCameraWidth": @0,
                              @"rpiCameraHeight": @0,
                              @"rpiCameraHFlip": @NO,
                              @"rpiCameraVFlip": @NO,
                              @"rpiCameraBrightness": @"",
                              @"rpiCameraContrast": @"",
                              @"rpiCameraSaturation": @"",
                              @"rpiCameraSharpness": @"",
                              @"rpiCameraExposure": @"",
                              @"rpiCameraAWB": @"",
                              @"rpiCameraAWBGains": @[  ],
                              @"rpiCameraDenoise": @"",
                              @"rpiCameraShutter": @0,
                              @"rpiCameraMetering": @"",
                              @"rpiCameraGain": @"",
                              @"rpiCameraEV": @"",
                              @"rpiCameraROI": @"",
                              @"rpiCameraHDR": @NO,
                              @"rpiCameraTuningFile": @"",
                              @"rpiCameraMode": @"",
                              @"rpiCameraFPS": @"",
                              @"rpiCameraAfMode": @"",
                              @"rpiCameraAfRange": @"",
                              @"rpiCameraAfSpeed": @"",
                              @"rpiCameraLensPosition": @"",
                              @"rpiCameraAfWindow": @"",
                              @"rpiCameraFlickerPeriod": @0,
                              @"rpiCameraTextOverlayEnable": @NO,
                              @"rpiCameraTextOverlay": @"",
                              @"rpiCameraCodec": @"",
                              @"rpiCameraIDRPeriod": @0,
                              @"rpiCameraBitrate": @0,
                              @"rpiCameraHardwareH264Profile": @"",
                              @"rpiCameraHardwareH264Level": @"",
                              @"rpiCameraSoftwareH264Profile": @"",
                              @"rpiCameraSoftwareH264Level": @"",
                              @"rpiCameraMJPEGQuality": @0,
                              @"runOnInit": @"",
                              @"runOnInitRestart": @NO,
                              @"runOnDemand": @"",
                              @"runOnDemandRestart": @NO,
                              @"runOnDemandStartTimeout": @"",
                              @"runOnDemandCloseAfter": @"",
                              @"runOnUnDemand": @"",
                              @"runOnReady": @"",
                              @"runOnReadyRestart": @NO,
                              @"runOnNotReady": @"",
                              @"runOnRead": @"",
                              @"runOnReadRestart": @NO,
                              @"runOnUnread": @"",
                              @"runOnRecordSegmentCreate": @"",
                              @"runOnRecordSegmentComplete": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/config/paths/patch/:name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/v3/config/paths/patch/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/config/paths/patch/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '',
    'source' => '',
    'sourceFingerprint' => '',
    'sourceOnDemand' => null,
    'sourceOnDemandStartTimeout' => '',
    'sourceOnDemandCloseAfter' => '',
    'maxReaders' => 0,
    'srtReadPassphrase' => '',
    'fallback' => '',
    'useAbsoluteTimestamp' => null,
    'record' => null,
    'recordPath' => '',
    'recordFormat' => '',
    'recordPartDuration' => '',
    'recordMaxPartSize' => '',
    'recordSegmentDuration' => '',
    'recordDeleteAfter' => '',
    'overridePublisher' => null,
    'srtPublishPassphrase' => '',
    'rtspTransport' => '',
    'rtspAnyPort' => null,
    'rtspRangeType' => '',
    'rtspRangeStart' => '',
    'rtpSDP' => '',
    'sourceRedirect' => '',
    'rpiCameraCamID' => 0,
    'rpiCameraSecondary' => null,
    'rpiCameraWidth' => 0,
    'rpiCameraHeight' => 0,
    'rpiCameraHFlip' => null,
    'rpiCameraVFlip' => null,
    'rpiCameraBrightness' => '',
    'rpiCameraContrast' => '',
    'rpiCameraSaturation' => '',
    'rpiCameraSharpness' => '',
    'rpiCameraExposure' => '',
    'rpiCameraAWB' => '',
    'rpiCameraAWBGains' => [
        
    ],
    'rpiCameraDenoise' => '',
    'rpiCameraShutter' => 0,
    'rpiCameraMetering' => '',
    'rpiCameraGain' => '',
    'rpiCameraEV' => '',
    'rpiCameraROI' => '',
    'rpiCameraHDR' => null,
    'rpiCameraTuningFile' => '',
    'rpiCameraMode' => '',
    'rpiCameraFPS' => '',
    'rpiCameraAfMode' => '',
    'rpiCameraAfRange' => '',
    'rpiCameraAfSpeed' => '',
    'rpiCameraLensPosition' => '',
    'rpiCameraAfWindow' => '',
    'rpiCameraFlickerPeriod' => 0,
    'rpiCameraTextOverlayEnable' => null,
    'rpiCameraTextOverlay' => '',
    'rpiCameraCodec' => '',
    'rpiCameraIDRPeriod' => 0,
    'rpiCameraBitrate' => 0,
    'rpiCameraHardwareH264Profile' => '',
    'rpiCameraHardwareH264Level' => '',
    'rpiCameraSoftwareH264Profile' => '',
    'rpiCameraSoftwareH264Level' => '',
    'rpiCameraMJPEGQuality' => 0,
    'runOnInit' => '',
    'runOnInitRestart' => null,
    'runOnDemand' => '',
    'runOnDemandRestart' => null,
    'runOnDemandStartTimeout' => '',
    'runOnDemandCloseAfter' => '',
    'runOnUnDemand' => '',
    'runOnReady' => '',
    'runOnReadyRestart' => null,
    'runOnNotReady' => '',
    'runOnRead' => '',
    'runOnReadRestart' => null,
    'runOnUnread' => '',
    'runOnRecordSegmentCreate' => '',
    'runOnRecordSegmentComplete' => ''
  ]),
  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('PATCH', '{{baseUrl}}/v3/config/paths/patch/:name', [
  'body' => '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/paths/patch/:name');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/config/paths/patch/:name');
$request->setRequestMethod('PATCH');
$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}}/v3/config/paths/patch/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/config/paths/patch/:name' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
import http.client

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

payload = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v3/config/paths/patch/:name", payload, headers)

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

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

url = "{{baseUrl}}/v3/config/paths/patch/:name"

payload = {
    "name": "",
    "source": "",
    "sourceFingerprint": "",
    "sourceOnDemand": False,
    "sourceOnDemandStartTimeout": "",
    "sourceOnDemandCloseAfter": "",
    "maxReaders": 0,
    "srtReadPassphrase": "",
    "fallback": "",
    "useAbsoluteTimestamp": False,
    "record": False,
    "recordPath": "",
    "recordFormat": "",
    "recordPartDuration": "",
    "recordMaxPartSize": "",
    "recordSegmentDuration": "",
    "recordDeleteAfter": "",
    "overridePublisher": False,
    "srtPublishPassphrase": "",
    "rtspTransport": "",
    "rtspAnyPort": False,
    "rtspRangeType": "",
    "rtspRangeStart": "",
    "rtpSDP": "",
    "sourceRedirect": "",
    "rpiCameraCamID": 0,
    "rpiCameraSecondary": False,
    "rpiCameraWidth": 0,
    "rpiCameraHeight": 0,
    "rpiCameraHFlip": False,
    "rpiCameraVFlip": False,
    "rpiCameraBrightness": "",
    "rpiCameraContrast": "",
    "rpiCameraSaturation": "",
    "rpiCameraSharpness": "",
    "rpiCameraExposure": "",
    "rpiCameraAWB": "",
    "rpiCameraAWBGains": [],
    "rpiCameraDenoise": "",
    "rpiCameraShutter": 0,
    "rpiCameraMetering": "",
    "rpiCameraGain": "",
    "rpiCameraEV": "",
    "rpiCameraROI": "",
    "rpiCameraHDR": False,
    "rpiCameraTuningFile": "",
    "rpiCameraMode": "",
    "rpiCameraFPS": "",
    "rpiCameraAfMode": "",
    "rpiCameraAfRange": "",
    "rpiCameraAfSpeed": "",
    "rpiCameraLensPosition": "",
    "rpiCameraAfWindow": "",
    "rpiCameraFlickerPeriod": 0,
    "rpiCameraTextOverlayEnable": False,
    "rpiCameraTextOverlay": "",
    "rpiCameraCodec": "",
    "rpiCameraIDRPeriod": 0,
    "rpiCameraBitrate": 0,
    "rpiCameraHardwareH264Profile": "",
    "rpiCameraHardwareH264Level": "",
    "rpiCameraSoftwareH264Profile": "",
    "rpiCameraSoftwareH264Level": "",
    "rpiCameraMJPEGQuality": 0,
    "runOnInit": "",
    "runOnInitRestart": False,
    "runOnDemand": "",
    "runOnDemandRestart": False,
    "runOnDemandStartTimeout": "",
    "runOnDemandCloseAfter": "",
    "runOnUnDemand": "",
    "runOnReady": "",
    "runOnReadyRestart": False,
    "runOnNotReady": "",
    "runOnRead": "",
    "runOnReadRestart": False,
    "runOnUnread": "",
    "runOnRecordSegmentCreate": "",
    "runOnRecordSegmentComplete": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/config/paths/patch/:name"

payload <- "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/config/paths/patch/:name")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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.patch('/baseUrl/v3/config/paths/patch/:name') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/patch/:name";

    let payload = json!({
        "name": "",
        "source": "",
        "sourceFingerprint": "",
        "sourceOnDemand": false,
        "sourceOnDemandStartTimeout": "",
        "sourceOnDemandCloseAfter": "",
        "maxReaders": 0,
        "srtReadPassphrase": "",
        "fallback": "",
        "useAbsoluteTimestamp": false,
        "record": false,
        "recordPath": "",
        "recordFormat": "",
        "recordPartDuration": "",
        "recordMaxPartSize": "",
        "recordSegmentDuration": "",
        "recordDeleteAfter": "",
        "overridePublisher": false,
        "srtPublishPassphrase": "",
        "rtspTransport": "",
        "rtspAnyPort": false,
        "rtspRangeType": "",
        "rtspRangeStart": "",
        "rtpSDP": "",
        "sourceRedirect": "",
        "rpiCameraCamID": 0,
        "rpiCameraSecondary": false,
        "rpiCameraWidth": 0,
        "rpiCameraHeight": 0,
        "rpiCameraHFlip": false,
        "rpiCameraVFlip": false,
        "rpiCameraBrightness": "",
        "rpiCameraContrast": "",
        "rpiCameraSaturation": "",
        "rpiCameraSharpness": "",
        "rpiCameraExposure": "",
        "rpiCameraAWB": "",
        "rpiCameraAWBGains": (),
        "rpiCameraDenoise": "",
        "rpiCameraShutter": 0,
        "rpiCameraMetering": "",
        "rpiCameraGain": "",
        "rpiCameraEV": "",
        "rpiCameraROI": "",
        "rpiCameraHDR": false,
        "rpiCameraTuningFile": "",
        "rpiCameraMode": "",
        "rpiCameraFPS": "",
        "rpiCameraAfMode": "",
        "rpiCameraAfRange": "",
        "rpiCameraAfSpeed": "",
        "rpiCameraLensPosition": "",
        "rpiCameraAfWindow": "",
        "rpiCameraFlickerPeriod": 0,
        "rpiCameraTextOverlayEnable": false,
        "rpiCameraTextOverlay": "",
        "rpiCameraCodec": "",
        "rpiCameraIDRPeriod": 0,
        "rpiCameraBitrate": 0,
        "rpiCameraHardwareH264Profile": "",
        "rpiCameraHardwareH264Level": "",
        "rpiCameraSoftwareH264Profile": "",
        "rpiCameraSoftwareH264Level": "",
        "rpiCameraMJPEGQuality": 0,
        "runOnInit": "",
        "runOnInitRestart": false,
        "runOnDemand": "",
        "runOnDemandRestart": false,
        "runOnDemandStartTimeout": "",
        "runOnDemandCloseAfter": "",
        "runOnUnDemand": "",
        "runOnReady": "",
        "runOnReadyRestart": false,
        "runOnNotReady": "",
        "runOnRead": "",
        "runOnReadRestart": false,
        "runOnUnread": "",
        "runOnRecordSegmentCreate": "",
        "runOnRecordSegmentComplete": ""
    });

    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("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v3/config/paths/patch/:name \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
echo '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}' |  \
  http PATCH {{baseUrl}}/v3/config/paths/patch/:name \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/config/paths/patch/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/paths/patch/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
PATCH patches the default path configuration.
{{baseUrl}}/v3/config/pathdefaults/patch
BODY json

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/pathdefaults/patch");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v3/config/pathdefaults/patch" {:content-type :json
                                                                          :form-params {:name ""
                                                                                        :source ""
                                                                                        :sourceFingerprint ""
                                                                                        :sourceOnDemand false
                                                                                        :sourceOnDemandStartTimeout ""
                                                                                        :sourceOnDemandCloseAfter ""
                                                                                        :maxReaders 0
                                                                                        :srtReadPassphrase ""
                                                                                        :fallback ""
                                                                                        :useAbsoluteTimestamp false
                                                                                        :record false
                                                                                        :recordPath ""
                                                                                        :recordFormat ""
                                                                                        :recordPartDuration ""
                                                                                        :recordMaxPartSize ""
                                                                                        :recordSegmentDuration ""
                                                                                        :recordDeleteAfter ""
                                                                                        :overridePublisher false
                                                                                        :srtPublishPassphrase ""
                                                                                        :rtspTransport ""
                                                                                        :rtspAnyPort false
                                                                                        :rtspRangeType ""
                                                                                        :rtspRangeStart ""
                                                                                        :rtpSDP ""
                                                                                        :sourceRedirect ""
                                                                                        :rpiCameraCamID 0
                                                                                        :rpiCameraSecondary false
                                                                                        :rpiCameraWidth 0
                                                                                        :rpiCameraHeight 0
                                                                                        :rpiCameraHFlip false
                                                                                        :rpiCameraVFlip false
                                                                                        :rpiCameraBrightness ""
                                                                                        :rpiCameraContrast ""
                                                                                        :rpiCameraSaturation ""
                                                                                        :rpiCameraSharpness ""
                                                                                        :rpiCameraExposure ""
                                                                                        :rpiCameraAWB ""
                                                                                        :rpiCameraAWBGains []
                                                                                        :rpiCameraDenoise ""
                                                                                        :rpiCameraShutter 0
                                                                                        :rpiCameraMetering ""
                                                                                        :rpiCameraGain ""
                                                                                        :rpiCameraEV ""
                                                                                        :rpiCameraROI ""
                                                                                        :rpiCameraHDR false
                                                                                        :rpiCameraTuningFile ""
                                                                                        :rpiCameraMode ""
                                                                                        :rpiCameraFPS ""
                                                                                        :rpiCameraAfMode ""
                                                                                        :rpiCameraAfRange ""
                                                                                        :rpiCameraAfSpeed ""
                                                                                        :rpiCameraLensPosition ""
                                                                                        :rpiCameraAfWindow ""
                                                                                        :rpiCameraFlickerPeriod 0
                                                                                        :rpiCameraTextOverlayEnable false
                                                                                        :rpiCameraTextOverlay ""
                                                                                        :rpiCameraCodec ""
                                                                                        :rpiCameraIDRPeriod 0
                                                                                        :rpiCameraBitrate 0
                                                                                        :rpiCameraHardwareH264Profile ""
                                                                                        :rpiCameraHardwareH264Level ""
                                                                                        :rpiCameraSoftwareH264Profile ""
                                                                                        :rpiCameraSoftwareH264Level ""
                                                                                        :rpiCameraMJPEGQuality 0
                                                                                        :runOnInit ""
                                                                                        :runOnInitRestart false
                                                                                        :runOnDemand ""
                                                                                        :runOnDemandRestart false
                                                                                        :runOnDemandStartTimeout ""
                                                                                        :runOnDemandCloseAfter ""
                                                                                        :runOnUnDemand ""
                                                                                        :runOnReady ""
                                                                                        :runOnReadyRestart false
                                                                                        :runOnNotReady ""
                                                                                        :runOnRead ""
                                                                                        :runOnReadRestart false
                                                                                        :runOnUnread ""
                                                                                        :runOnRecordSegmentCreate ""
                                                                                        :runOnRecordSegmentComplete ""}})
require "http/client"

url = "{{baseUrl}}/v3/config/pathdefaults/patch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v3/config/pathdefaults/patch"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/pathdefaults/patch");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/config/pathdefaults/patch"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")

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

}
PATCH /baseUrl/v3/config/pathdefaults/patch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2096

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v3/config/pathdefaults/patch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/config/pathdefaults/patch"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/config/pathdefaults/patch")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v3/config/pathdefaults/patch")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v3/config/pathdefaults/patch');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/pathdefaults/patch',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/config/pathdefaults/patch';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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}}/v3/config/pathdefaults/patch',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/pathdefaults/patch")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/config/pathdefaults/patch',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/pathdefaults/patch',
  headers: {'content-type': 'application/json'},
  body: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/v3/config/pathdefaults/patch');

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

req.type('json');
req.send({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/pathdefaults/patch',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

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

const url = '{{baseUrl}}/v3/config/pathdefaults/patch';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
                              @"source": @"",
                              @"sourceFingerprint": @"",
                              @"sourceOnDemand": @NO,
                              @"sourceOnDemandStartTimeout": @"",
                              @"sourceOnDemandCloseAfter": @"",
                              @"maxReaders": @0,
                              @"srtReadPassphrase": @"",
                              @"fallback": @"",
                              @"useAbsoluteTimestamp": @NO,
                              @"record": @NO,
                              @"recordPath": @"",
                              @"recordFormat": @"",
                              @"recordPartDuration": @"",
                              @"recordMaxPartSize": @"",
                              @"recordSegmentDuration": @"",
                              @"recordDeleteAfter": @"",
                              @"overridePublisher": @NO,
                              @"srtPublishPassphrase": @"",
                              @"rtspTransport": @"",
                              @"rtspAnyPort": @NO,
                              @"rtspRangeType": @"",
                              @"rtspRangeStart": @"",
                              @"rtpSDP": @"",
                              @"sourceRedirect": @"",
                              @"rpiCameraCamID": @0,
                              @"rpiCameraSecondary": @NO,
                              @"rpiCameraWidth": @0,
                              @"rpiCameraHeight": @0,
                              @"rpiCameraHFlip": @NO,
                              @"rpiCameraVFlip": @NO,
                              @"rpiCameraBrightness": @"",
                              @"rpiCameraContrast": @"",
                              @"rpiCameraSaturation": @"",
                              @"rpiCameraSharpness": @"",
                              @"rpiCameraExposure": @"",
                              @"rpiCameraAWB": @"",
                              @"rpiCameraAWBGains": @[  ],
                              @"rpiCameraDenoise": @"",
                              @"rpiCameraShutter": @0,
                              @"rpiCameraMetering": @"",
                              @"rpiCameraGain": @"",
                              @"rpiCameraEV": @"",
                              @"rpiCameraROI": @"",
                              @"rpiCameraHDR": @NO,
                              @"rpiCameraTuningFile": @"",
                              @"rpiCameraMode": @"",
                              @"rpiCameraFPS": @"",
                              @"rpiCameraAfMode": @"",
                              @"rpiCameraAfRange": @"",
                              @"rpiCameraAfSpeed": @"",
                              @"rpiCameraLensPosition": @"",
                              @"rpiCameraAfWindow": @"",
                              @"rpiCameraFlickerPeriod": @0,
                              @"rpiCameraTextOverlayEnable": @NO,
                              @"rpiCameraTextOverlay": @"",
                              @"rpiCameraCodec": @"",
                              @"rpiCameraIDRPeriod": @0,
                              @"rpiCameraBitrate": @0,
                              @"rpiCameraHardwareH264Profile": @"",
                              @"rpiCameraHardwareH264Level": @"",
                              @"rpiCameraSoftwareH264Profile": @"",
                              @"rpiCameraSoftwareH264Level": @"",
                              @"rpiCameraMJPEGQuality": @0,
                              @"runOnInit": @"",
                              @"runOnInitRestart": @NO,
                              @"runOnDemand": @"",
                              @"runOnDemandRestart": @NO,
                              @"runOnDemandStartTimeout": @"",
                              @"runOnDemandCloseAfter": @"",
                              @"runOnUnDemand": @"",
                              @"runOnReady": @"",
                              @"runOnReadyRestart": @NO,
                              @"runOnNotReady": @"",
                              @"runOnRead": @"",
                              @"runOnReadRestart": @NO,
                              @"runOnUnread": @"",
                              @"runOnRecordSegmentCreate": @"",
                              @"runOnRecordSegmentComplete": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/config/pathdefaults/patch"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/v3/config/pathdefaults/patch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/config/pathdefaults/patch",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '',
    'source' => '',
    'sourceFingerprint' => '',
    'sourceOnDemand' => null,
    'sourceOnDemandStartTimeout' => '',
    'sourceOnDemandCloseAfter' => '',
    'maxReaders' => 0,
    'srtReadPassphrase' => '',
    'fallback' => '',
    'useAbsoluteTimestamp' => null,
    'record' => null,
    'recordPath' => '',
    'recordFormat' => '',
    'recordPartDuration' => '',
    'recordMaxPartSize' => '',
    'recordSegmentDuration' => '',
    'recordDeleteAfter' => '',
    'overridePublisher' => null,
    'srtPublishPassphrase' => '',
    'rtspTransport' => '',
    'rtspAnyPort' => null,
    'rtspRangeType' => '',
    'rtspRangeStart' => '',
    'rtpSDP' => '',
    'sourceRedirect' => '',
    'rpiCameraCamID' => 0,
    'rpiCameraSecondary' => null,
    'rpiCameraWidth' => 0,
    'rpiCameraHeight' => 0,
    'rpiCameraHFlip' => null,
    'rpiCameraVFlip' => null,
    'rpiCameraBrightness' => '',
    'rpiCameraContrast' => '',
    'rpiCameraSaturation' => '',
    'rpiCameraSharpness' => '',
    'rpiCameraExposure' => '',
    'rpiCameraAWB' => '',
    'rpiCameraAWBGains' => [
        
    ],
    'rpiCameraDenoise' => '',
    'rpiCameraShutter' => 0,
    'rpiCameraMetering' => '',
    'rpiCameraGain' => '',
    'rpiCameraEV' => '',
    'rpiCameraROI' => '',
    'rpiCameraHDR' => null,
    'rpiCameraTuningFile' => '',
    'rpiCameraMode' => '',
    'rpiCameraFPS' => '',
    'rpiCameraAfMode' => '',
    'rpiCameraAfRange' => '',
    'rpiCameraAfSpeed' => '',
    'rpiCameraLensPosition' => '',
    'rpiCameraAfWindow' => '',
    'rpiCameraFlickerPeriod' => 0,
    'rpiCameraTextOverlayEnable' => null,
    'rpiCameraTextOverlay' => '',
    'rpiCameraCodec' => '',
    'rpiCameraIDRPeriod' => 0,
    'rpiCameraBitrate' => 0,
    'rpiCameraHardwareH264Profile' => '',
    'rpiCameraHardwareH264Level' => '',
    'rpiCameraSoftwareH264Profile' => '',
    'rpiCameraSoftwareH264Level' => '',
    'rpiCameraMJPEGQuality' => 0,
    'runOnInit' => '',
    'runOnInitRestart' => null,
    'runOnDemand' => '',
    'runOnDemandRestart' => null,
    'runOnDemandStartTimeout' => '',
    'runOnDemandCloseAfter' => '',
    'runOnUnDemand' => '',
    'runOnReady' => '',
    'runOnReadyRestart' => null,
    'runOnNotReady' => '',
    'runOnRead' => '',
    'runOnReadRestart' => null,
    'runOnUnread' => '',
    'runOnRecordSegmentCreate' => '',
    'runOnRecordSegmentComplete' => ''
  ]),
  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('PATCH', '{{baseUrl}}/v3/config/pathdefaults/patch', [
  'body' => '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/pathdefaults/patch');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/config/pathdefaults/patch');
$request->setRequestMethod('PATCH');
$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}}/v3/config/pathdefaults/patch' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/config/pathdefaults/patch' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
import http.client

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

payload = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v3/config/pathdefaults/patch", payload, headers)

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

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

url = "{{baseUrl}}/v3/config/pathdefaults/patch"

payload = {
    "name": "",
    "source": "",
    "sourceFingerprint": "",
    "sourceOnDemand": False,
    "sourceOnDemandStartTimeout": "",
    "sourceOnDemandCloseAfter": "",
    "maxReaders": 0,
    "srtReadPassphrase": "",
    "fallback": "",
    "useAbsoluteTimestamp": False,
    "record": False,
    "recordPath": "",
    "recordFormat": "",
    "recordPartDuration": "",
    "recordMaxPartSize": "",
    "recordSegmentDuration": "",
    "recordDeleteAfter": "",
    "overridePublisher": False,
    "srtPublishPassphrase": "",
    "rtspTransport": "",
    "rtspAnyPort": False,
    "rtspRangeType": "",
    "rtspRangeStart": "",
    "rtpSDP": "",
    "sourceRedirect": "",
    "rpiCameraCamID": 0,
    "rpiCameraSecondary": False,
    "rpiCameraWidth": 0,
    "rpiCameraHeight": 0,
    "rpiCameraHFlip": False,
    "rpiCameraVFlip": False,
    "rpiCameraBrightness": "",
    "rpiCameraContrast": "",
    "rpiCameraSaturation": "",
    "rpiCameraSharpness": "",
    "rpiCameraExposure": "",
    "rpiCameraAWB": "",
    "rpiCameraAWBGains": [],
    "rpiCameraDenoise": "",
    "rpiCameraShutter": 0,
    "rpiCameraMetering": "",
    "rpiCameraGain": "",
    "rpiCameraEV": "",
    "rpiCameraROI": "",
    "rpiCameraHDR": False,
    "rpiCameraTuningFile": "",
    "rpiCameraMode": "",
    "rpiCameraFPS": "",
    "rpiCameraAfMode": "",
    "rpiCameraAfRange": "",
    "rpiCameraAfSpeed": "",
    "rpiCameraLensPosition": "",
    "rpiCameraAfWindow": "",
    "rpiCameraFlickerPeriod": 0,
    "rpiCameraTextOverlayEnable": False,
    "rpiCameraTextOverlay": "",
    "rpiCameraCodec": "",
    "rpiCameraIDRPeriod": 0,
    "rpiCameraBitrate": 0,
    "rpiCameraHardwareH264Profile": "",
    "rpiCameraHardwareH264Level": "",
    "rpiCameraSoftwareH264Profile": "",
    "rpiCameraSoftwareH264Level": "",
    "rpiCameraMJPEGQuality": 0,
    "runOnInit": "",
    "runOnInitRestart": False,
    "runOnDemand": "",
    "runOnDemandRestart": False,
    "runOnDemandStartTimeout": "",
    "runOnDemandCloseAfter": "",
    "runOnUnDemand": "",
    "runOnReady": "",
    "runOnReadyRestart": False,
    "runOnNotReady": "",
    "runOnRead": "",
    "runOnReadRestart": False,
    "runOnUnread": "",
    "runOnRecordSegmentCreate": "",
    "runOnRecordSegmentComplete": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/config/pathdefaults/patch"

payload <- "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/config/pathdefaults/patch")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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.patch('/baseUrl/v3/config/pathdefaults/patch') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/pathdefaults/patch";

    let payload = json!({
        "name": "",
        "source": "",
        "sourceFingerprint": "",
        "sourceOnDemand": false,
        "sourceOnDemandStartTimeout": "",
        "sourceOnDemandCloseAfter": "",
        "maxReaders": 0,
        "srtReadPassphrase": "",
        "fallback": "",
        "useAbsoluteTimestamp": false,
        "record": false,
        "recordPath": "",
        "recordFormat": "",
        "recordPartDuration": "",
        "recordMaxPartSize": "",
        "recordSegmentDuration": "",
        "recordDeleteAfter": "",
        "overridePublisher": false,
        "srtPublishPassphrase": "",
        "rtspTransport": "",
        "rtspAnyPort": false,
        "rtspRangeType": "",
        "rtspRangeStart": "",
        "rtpSDP": "",
        "sourceRedirect": "",
        "rpiCameraCamID": 0,
        "rpiCameraSecondary": false,
        "rpiCameraWidth": 0,
        "rpiCameraHeight": 0,
        "rpiCameraHFlip": false,
        "rpiCameraVFlip": false,
        "rpiCameraBrightness": "",
        "rpiCameraContrast": "",
        "rpiCameraSaturation": "",
        "rpiCameraSharpness": "",
        "rpiCameraExposure": "",
        "rpiCameraAWB": "",
        "rpiCameraAWBGains": (),
        "rpiCameraDenoise": "",
        "rpiCameraShutter": 0,
        "rpiCameraMetering": "",
        "rpiCameraGain": "",
        "rpiCameraEV": "",
        "rpiCameraROI": "",
        "rpiCameraHDR": false,
        "rpiCameraTuningFile": "",
        "rpiCameraMode": "",
        "rpiCameraFPS": "",
        "rpiCameraAfMode": "",
        "rpiCameraAfRange": "",
        "rpiCameraAfSpeed": "",
        "rpiCameraLensPosition": "",
        "rpiCameraAfWindow": "",
        "rpiCameraFlickerPeriod": 0,
        "rpiCameraTextOverlayEnable": false,
        "rpiCameraTextOverlay": "",
        "rpiCameraCodec": "",
        "rpiCameraIDRPeriod": 0,
        "rpiCameraBitrate": 0,
        "rpiCameraHardwareH264Profile": "",
        "rpiCameraHardwareH264Level": "",
        "rpiCameraSoftwareH264Profile": "",
        "rpiCameraSoftwareH264Level": "",
        "rpiCameraMJPEGQuality": 0,
        "runOnInit": "",
        "runOnInitRestart": false,
        "runOnDemand": "",
        "runOnDemandRestart": false,
        "runOnDemandStartTimeout": "",
        "runOnDemandCloseAfter": "",
        "runOnUnDemand": "",
        "runOnReady": "",
        "runOnReadyRestart": false,
        "runOnNotReady": "",
        "runOnRead": "",
        "runOnReadRestart": false,
        "runOnUnread": "",
        "runOnRecordSegmentCreate": "",
        "runOnRecordSegmentComplete": ""
    });

    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("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v3/config/pathdefaults/patch \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
echo '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}' |  \
  http PATCH {{baseUrl}}/v3/config/pathdefaults/patch \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/config/pathdefaults/patch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/pathdefaults/patch")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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()
PATCH patches the global configuration.
{{baseUrl}}/v3/config/global/patch
BODY json

{
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    {
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        {
          "action": "",
          "path": ""
        }
      ]
    }
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [
    {}
  ],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [
    {}
  ],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    {
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    }
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/global/patch");

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  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}");

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

(client/patch "{{baseUrl}}/v3/config/global/patch" {:content-type :json
                                                                    :form-params {:logLevel ""
                                                                                  :logDestinations []
                                                                                  :logFile ""
                                                                                  :sysLogPrefix ""
                                                                                  :readTimeout ""
                                                                                  :writeTimeout ""
                                                                                  :writeQueueSize 0
                                                                                  :udpMaxPayloadSize 0
                                                                                  :udpReadBufferSize 0
                                                                                  :runOnConnect ""
                                                                                  :runOnConnectRestart false
                                                                                  :runOnDisconnect ""
                                                                                  :authMethod ""
                                                                                  :authInternalUsers [{:user ""
                                                                                                       :pass ""
                                                                                                       :ips []
                                                                                                       :permissions [{:action ""
                                                                                                                      :path ""}]}]
                                                                                  :authHTTPAddress ""
                                                                                  :authHTTPExclude [{}]
                                                                                  :authJWTJWKS ""
                                                                                  :authJWTJWKSFingerprint ""
                                                                                  :authJWTClaimKey ""
                                                                                  :authJWTExclude [{}]
                                                                                  :authJWTInHTTPQuery false
                                                                                  :api false
                                                                                  :apiAddress ""
                                                                                  :apiEncryption false
                                                                                  :apiServerKey ""
                                                                                  :apiServerCert ""
                                                                                  :apiAllowOrigin ""
                                                                                  :apiTrustedProxies []
                                                                                  :metrics false
                                                                                  :metricsAddress ""
                                                                                  :metricsEncryption false
                                                                                  :metricsServerKey ""
                                                                                  :metricsServerCert ""
                                                                                  :metricsAllowOrigin ""
                                                                                  :metricsTrustedProxies []
                                                                                  :pprof false
                                                                                  :pprofAddress ""
                                                                                  :pprofEncryption false
                                                                                  :pprofServerKey ""
                                                                                  :pprofServerCert ""
                                                                                  :pprofAllowOrigin ""
                                                                                  :pprofTrustedProxies []
                                                                                  :playback false
                                                                                  :playbackAddress ""
                                                                                  :playbackEncryption false
                                                                                  :playbackServerKey ""
                                                                                  :playbackServerCert ""
                                                                                  :playbackAllowOrigin ""
                                                                                  :playbackTrustedProxies []
                                                                                  :rtsp false
                                                                                  :rtspTransports []
                                                                                  :rtspEncryption ""
                                                                                  :rtspAddress ""
                                                                                  :rtspsAddress ""
                                                                                  :rtpAddress ""
                                                                                  :rtcpAddress ""
                                                                                  :multicastIPRange ""
                                                                                  :multicastRTPPort 0
                                                                                  :multicastRTCPPort 0
                                                                                  :srtpAddress ""
                                                                                  :srtcpAddress ""
                                                                                  :multicastSRTPPort 0
                                                                                  :multicastSRTCPPort 0
                                                                                  :rtspServerKey ""
                                                                                  :rtspServerCert ""
                                                                                  :rtspAuthMethods []
                                                                                  :rtmp false
                                                                                  :rtmpAddress ""
                                                                                  :rtmpEncryption ""
                                                                                  :rtmpsAddress ""
                                                                                  :rtmpServerKey ""
                                                                                  :rtmpServerCert ""
                                                                                  :hls false
                                                                                  :hlsAddress ""
                                                                                  :hlsEncryption false
                                                                                  :hlsServerKey ""
                                                                                  :hlsServerCert ""
                                                                                  :hlsAllowOrigin ""
                                                                                  :hlsTrustedProxies []
                                                                                  :hlsAlwaysRemux false
                                                                                  :hlsVariant ""
                                                                                  :hlsSegmentCount 0
                                                                                  :hlsSegmentDuration ""
                                                                                  :hlsPartDuration ""
                                                                                  :hlsSegmentMaxSize ""
                                                                                  :hlsDirectory ""
                                                                                  :hlsMuxerCloseAfter ""
                                                                                  :webrtc false
                                                                                  :webrtcAddress ""
                                                                                  :webrtcEncryption false
                                                                                  :webrtcServerKey ""
                                                                                  :webrtcServerCert ""
                                                                                  :webrtcAllowOrigin ""
                                                                                  :webrtcTrustedProxies []
                                                                                  :webrtcLocalUDPAddress ""
                                                                                  :webrtcLocalTCPAddress ""
                                                                                  :webrtcIPsFromInterfaces false
                                                                                  :webrtcIPsFromInterfacesList []
                                                                                  :webrtcAdditionalHosts []
                                                                                  :webrtcICEServers2 [{:url ""
                                                                                                       :username ""
                                                                                                       :password ""
                                                                                                       :clientOnly false}]
                                                                                  :webrtcHandshakeTimeout ""
                                                                                  :webrtcTrackGatherTimeout ""
                                                                                  :webrtcSTUNGatherTimeout ""
                                                                                  :srt false
                                                                                  :srtAddress ""}})
require "http/client"

url = "{{baseUrl}}/v3/config/global/patch"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/v3/config/global/patch"),
    Content = new StringContent("{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\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}}/v3/config/global/patch");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/config/global/patch"

	payload := strings.NewReader("{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}")

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

}
PATCH /baseUrl/v3/config/global/patch HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2897

{
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    {
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        {
          "action": "",
          "path": ""
        }
      ]
    }
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [
    {}
  ],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [
    {}
  ],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    {
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    }
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/v3/config/global/patch")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/config/global/patch"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\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  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/config/global/patch")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/v3/config/global/patch")
  .header("content-type", "application/json")
  .body("{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  logLevel: '',
  logDestinations: [],
  logFile: '',
  sysLogPrefix: '',
  readTimeout: '',
  writeTimeout: '',
  writeQueueSize: 0,
  udpMaxPayloadSize: 0,
  udpReadBufferSize: 0,
  runOnConnect: '',
  runOnConnectRestart: false,
  runOnDisconnect: '',
  authMethod: '',
  authInternalUsers: [
    {
      user: '',
      pass: '',
      ips: [],
      permissions: [
        {
          action: '',
          path: ''
        }
      ]
    }
  ],
  authHTTPAddress: '',
  authHTTPExclude: [
    {}
  ],
  authJWTJWKS: '',
  authJWTJWKSFingerprint: '',
  authJWTClaimKey: '',
  authJWTExclude: [
    {}
  ],
  authJWTInHTTPQuery: false,
  api: false,
  apiAddress: '',
  apiEncryption: false,
  apiServerKey: '',
  apiServerCert: '',
  apiAllowOrigin: '',
  apiTrustedProxies: [],
  metrics: false,
  metricsAddress: '',
  metricsEncryption: false,
  metricsServerKey: '',
  metricsServerCert: '',
  metricsAllowOrigin: '',
  metricsTrustedProxies: [],
  pprof: false,
  pprofAddress: '',
  pprofEncryption: false,
  pprofServerKey: '',
  pprofServerCert: '',
  pprofAllowOrigin: '',
  pprofTrustedProxies: [],
  playback: false,
  playbackAddress: '',
  playbackEncryption: false,
  playbackServerKey: '',
  playbackServerCert: '',
  playbackAllowOrigin: '',
  playbackTrustedProxies: [],
  rtsp: false,
  rtspTransports: [],
  rtspEncryption: '',
  rtspAddress: '',
  rtspsAddress: '',
  rtpAddress: '',
  rtcpAddress: '',
  multicastIPRange: '',
  multicastRTPPort: 0,
  multicastRTCPPort: 0,
  srtpAddress: '',
  srtcpAddress: '',
  multicastSRTPPort: 0,
  multicastSRTCPPort: 0,
  rtspServerKey: '',
  rtspServerCert: '',
  rtspAuthMethods: [],
  rtmp: false,
  rtmpAddress: '',
  rtmpEncryption: '',
  rtmpsAddress: '',
  rtmpServerKey: '',
  rtmpServerCert: '',
  hls: false,
  hlsAddress: '',
  hlsEncryption: false,
  hlsServerKey: '',
  hlsServerCert: '',
  hlsAllowOrigin: '',
  hlsTrustedProxies: [],
  hlsAlwaysRemux: false,
  hlsVariant: '',
  hlsSegmentCount: 0,
  hlsSegmentDuration: '',
  hlsPartDuration: '',
  hlsSegmentMaxSize: '',
  hlsDirectory: '',
  hlsMuxerCloseAfter: '',
  webrtc: false,
  webrtcAddress: '',
  webrtcEncryption: false,
  webrtcServerKey: '',
  webrtcServerCert: '',
  webrtcAllowOrigin: '',
  webrtcTrustedProxies: [],
  webrtcLocalUDPAddress: '',
  webrtcLocalTCPAddress: '',
  webrtcIPsFromInterfaces: false,
  webrtcIPsFromInterfacesList: [],
  webrtcAdditionalHosts: [],
  webrtcICEServers2: [
    {
      url: '',
      username: '',
      password: '',
      clientOnly: false
    }
  ],
  webrtcHandshakeTimeout: '',
  webrtcTrackGatherTimeout: '',
  webrtcSTUNGatherTimeout: '',
  srt: false,
  srtAddress: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/v3/config/global/patch');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/global/patch',
  headers: {'content-type': 'application/json'},
  data: {
    logLevel: '',
    logDestinations: [],
    logFile: '',
    sysLogPrefix: '',
    readTimeout: '',
    writeTimeout: '',
    writeQueueSize: 0,
    udpMaxPayloadSize: 0,
    udpReadBufferSize: 0,
    runOnConnect: '',
    runOnConnectRestart: false,
    runOnDisconnect: '',
    authMethod: '',
    authInternalUsers: [{user: '', pass: '', ips: [], permissions: [{action: '', path: ''}]}],
    authHTTPAddress: '',
    authHTTPExclude: [{}],
    authJWTJWKS: '',
    authJWTJWKSFingerprint: '',
    authJWTClaimKey: '',
    authJWTExclude: [{}],
    authJWTInHTTPQuery: false,
    api: false,
    apiAddress: '',
    apiEncryption: false,
    apiServerKey: '',
    apiServerCert: '',
    apiAllowOrigin: '',
    apiTrustedProxies: [],
    metrics: false,
    metricsAddress: '',
    metricsEncryption: false,
    metricsServerKey: '',
    metricsServerCert: '',
    metricsAllowOrigin: '',
    metricsTrustedProxies: [],
    pprof: false,
    pprofAddress: '',
    pprofEncryption: false,
    pprofServerKey: '',
    pprofServerCert: '',
    pprofAllowOrigin: '',
    pprofTrustedProxies: [],
    playback: false,
    playbackAddress: '',
    playbackEncryption: false,
    playbackServerKey: '',
    playbackServerCert: '',
    playbackAllowOrigin: '',
    playbackTrustedProxies: [],
    rtsp: false,
    rtspTransports: [],
    rtspEncryption: '',
    rtspAddress: '',
    rtspsAddress: '',
    rtpAddress: '',
    rtcpAddress: '',
    multicastIPRange: '',
    multicastRTPPort: 0,
    multicastRTCPPort: 0,
    srtpAddress: '',
    srtcpAddress: '',
    multicastSRTPPort: 0,
    multicastSRTCPPort: 0,
    rtspServerKey: '',
    rtspServerCert: '',
    rtspAuthMethods: [],
    rtmp: false,
    rtmpAddress: '',
    rtmpEncryption: '',
    rtmpsAddress: '',
    rtmpServerKey: '',
    rtmpServerCert: '',
    hls: false,
    hlsAddress: '',
    hlsEncryption: false,
    hlsServerKey: '',
    hlsServerCert: '',
    hlsAllowOrigin: '',
    hlsTrustedProxies: [],
    hlsAlwaysRemux: false,
    hlsVariant: '',
    hlsSegmentCount: 0,
    hlsSegmentDuration: '',
    hlsPartDuration: '',
    hlsSegmentMaxSize: '',
    hlsDirectory: '',
    hlsMuxerCloseAfter: '',
    webrtc: false,
    webrtcAddress: '',
    webrtcEncryption: false,
    webrtcServerKey: '',
    webrtcServerCert: '',
    webrtcAllowOrigin: '',
    webrtcTrustedProxies: [],
    webrtcLocalUDPAddress: '',
    webrtcLocalTCPAddress: '',
    webrtcIPsFromInterfaces: false,
    webrtcIPsFromInterfacesList: [],
    webrtcAdditionalHosts: [],
    webrtcICEServers2: [{url: '', username: '', password: '', clientOnly: false}],
    webrtcHandshakeTimeout: '',
    webrtcTrackGatherTimeout: '',
    webrtcSTUNGatherTimeout: '',
    srt: false,
    srtAddress: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/config/global/patch';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"logLevel":"","logDestinations":[],"logFile":"","sysLogPrefix":"","readTimeout":"","writeTimeout":"","writeQueueSize":0,"udpMaxPayloadSize":0,"udpReadBufferSize":0,"runOnConnect":"","runOnConnectRestart":false,"runOnDisconnect":"","authMethod":"","authInternalUsers":[{"user":"","pass":"","ips":[],"permissions":[{"action":"","path":""}]}],"authHTTPAddress":"","authHTTPExclude":[{}],"authJWTJWKS":"","authJWTJWKSFingerprint":"","authJWTClaimKey":"","authJWTExclude":[{}],"authJWTInHTTPQuery":false,"api":false,"apiAddress":"","apiEncryption":false,"apiServerKey":"","apiServerCert":"","apiAllowOrigin":"","apiTrustedProxies":[],"metrics":false,"metricsAddress":"","metricsEncryption":false,"metricsServerKey":"","metricsServerCert":"","metricsAllowOrigin":"","metricsTrustedProxies":[],"pprof":false,"pprofAddress":"","pprofEncryption":false,"pprofServerKey":"","pprofServerCert":"","pprofAllowOrigin":"","pprofTrustedProxies":[],"playback":false,"playbackAddress":"","playbackEncryption":false,"playbackServerKey":"","playbackServerCert":"","playbackAllowOrigin":"","playbackTrustedProxies":[],"rtsp":false,"rtspTransports":[],"rtspEncryption":"","rtspAddress":"","rtspsAddress":"","rtpAddress":"","rtcpAddress":"","multicastIPRange":"","multicastRTPPort":0,"multicastRTCPPort":0,"srtpAddress":"","srtcpAddress":"","multicastSRTPPort":0,"multicastSRTCPPort":0,"rtspServerKey":"","rtspServerCert":"","rtspAuthMethods":[],"rtmp":false,"rtmpAddress":"","rtmpEncryption":"","rtmpsAddress":"","rtmpServerKey":"","rtmpServerCert":"","hls":false,"hlsAddress":"","hlsEncryption":false,"hlsServerKey":"","hlsServerCert":"","hlsAllowOrigin":"","hlsTrustedProxies":[],"hlsAlwaysRemux":false,"hlsVariant":"","hlsSegmentCount":0,"hlsSegmentDuration":"","hlsPartDuration":"","hlsSegmentMaxSize":"","hlsDirectory":"","hlsMuxerCloseAfter":"","webrtc":false,"webrtcAddress":"","webrtcEncryption":false,"webrtcServerKey":"","webrtcServerCert":"","webrtcAllowOrigin":"","webrtcTrustedProxies":[],"webrtcLocalUDPAddress":"","webrtcLocalTCPAddress":"","webrtcIPsFromInterfaces":false,"webrtcIPsFromInterfacesList":[],"webrtcAdditionalHosts":[],"webrtcICEServers2":[{"url":"","username":"","password":"","clientOnly":false}],"webrtcHandshakeTimeout":"","webrtcTrackGatherTimeout":"","webrtcSTUNGatherTimeout":"","srt":false,"srtAddress":""}'
};

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}}/v3/config/global/patch',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "logLevel": "",\n  "logDestinations": [],\n  "logFile": "",\n  "sysLogPrefix": "",\n  "readTimeout": "",\n  "writeTimeout": "",\n  "writeQueueSize": 0,\n  "udpMaxPayloadSize": 0,\n  "udpReadBufferSize": 0,\n  "runOnConnect": "",\n  "runOnConnectRestart": false,\n  "runOnDisconnect": "",\n  "authMethod": "",\n  "authInternalUsers": [\n    {\n      "user": "",\n      "pass": "",\n      "ips": [],\n      "permissions": [\n        {\n          "action": "",\n          "path": ""\n        }\n      ]\n    }\n  ],\n  "authHTTPAddress": "",\n  "authHTTPExclude": [\n    {}\n  ],\n  "authJWTJWKS": "",\n  "authJWTJWKSFingerprint": "",\n  "authJWTClaimKey": "",\n  "authJWTExclude": [\n    {}\n  ],\n  "authJWTInHTTPQuery": false,\n  "api": false,\n  "apiAddress": "",\n  "apiEncryption": false,\n  "apiServerKey": "",\n  "apiServerCert": "",\n  "apiAllowOrigin": "",\n  "apiTrustedProxies": [],\n  "metrics": false,\n  "metricsAddress": "",\n  "metricsEncryption": false,\n  "metricsServerKey": "",\n  "metricsServerCert": "",\n  "metricsAllowOrigin": "",\n  "metricsTrustedProxies": [],\n  "pprof": false,\n  "pprofAddress": "",\n  "pprofEncryption": false,\n  "pprofServerKey": "",\n  "pprofServerCert": "",\n  "pprofAllowOrigin": "",\n  "pprofTrustedProxies": [],\n  "playback": false,\n  "playbackAddress": "",\n  "playbackEncryption": false,\n  "playbackServerKey": "",\n  "playbackServerCert": "",\n  "playbackAllowOrigin": "",\n  "playbackTrustedProxies": [],\n  "rtsp": false,\n  "rtspTransports": [],\n  "rtspEncryption": "",\n  "rtspAddress": "",\n  "rtspsAddress": "",\n  "rtpAddress": "",\n  "rtcpAddress": "",\n  "multicastIPRange": "",\n  "multicastRTPPort": 0,\n  "multicastRTCPPort": 0,\n  "srtpAddress": "",\n  "srtcpAddress": "",\n  "multicastSRTPPort": 0,\n  "multicastSRTCPPort": 0,\n  "rtspServerKey": "",\n  "rtspServerCert": "",\n  "rtspAuthMethods": [],\n  "rtmp": false,\n  "rtmpAddress": "",\n  "rtmpEncryption": "",\n  "rtmpsAddress": "",\n  "rtmpServerKey": "",\n  "rtmpServerCert": "",\n  "hls": false,\n  "hlsAddress": "",\n  "hlsEncryption": false,\n  "hlsServerKey": "",\n  "hlsServerCert": "",\n  "hlsAllowOrigin": "",\n  "hlsTrustedProxies": [],\n  "hlsAlwaysRemux": false,\n  "hlsVariant": "",\n  "hlsSegmentCount": 0,\n  "hlsSegmentDuration": "",\n  "hlsPartDuration": "",\n  "hlsSegmentMaxSize": "",\n  "hlsDirectory": "",\n  "hlsMuxerCloseAfter": "",\n  "webrtc": false,\n  "webrtcAddress": "",\n  "webrtcEncryption": false,\n  "webrtcServerKey": "",\n  "webrtcServerCert": "",\n  "webrtcAllowOrigin": "",\n  "webrtcTrustedProxies": [],\n  "webrtcLocalUDPAddress": "",\n  "webrtcLocalTCPAddress": "",\n  "webrtcIPsFromInterfaces": false,\n  "webrtcIPsFromInterfacesList": [],\n  "webrtcAdditionalHosts": [],\n  "webrtcICEServers2": [\n    {\n      "url": "",\n      "username": "",\n      "password": "",\n      "clientOnly": false\n    }\n  ],\n  "webrtcHandshakeTimeout": "",\n  "webrtcTrackGatherTimeout": "",\n  "webrtcSTUNGatherTimeout": "",\n  "srt": false,\n  "srtAddress": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/global/patch")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PATCH',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/config/global/patch',
  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({
  logLevel: '',
  logDestinations: [],
  logFile: '',
  sysLogPrefix: '',
  readTimeout: '',
  writeTimeout: '',
  writeQueueSize: 0,
  udpMaxPayloadSize: 0,
  udpReadBufferSize: 0,
  runOnConnect: '',
  runOnConnectRestart: false,
  runOnDisconnect: '',
  authMethod: '',
  authInternalUsers: [{user: '', pass: '', ips: [], permissions: [{action: '', path: ''}]}],
  authHTTPAddress: '',
  authHTTPExclude: [{}],
  authJWTJWKS: '',
  authJWTJWKSFingerprint: '',
  authJWTClaimKey: '',
  authJWTExclude: [{}],
  authJWTInHTTPQuery: false,
  api: false,
  apiAddress: '',
  apiEncryption: false,
  apiServerKey: '',
  apiServerCert: '',
  apiAllowOrigin: '',
  apiTrustedProxies: [],
  metrics: false,
  metricsAddress: '',
  metricsEncryption: false,
  metricsServerKey: '',
  metricsServerCert: '',
  metricsAllowOrigin: '',
  metricsTrustedProxies: [],
  pprof: false,
  pprofAddress: '',
  pprofEncryption: false,
  pprofServerKey: '',
  pprofServerCert: '',
  pprofAllowOrigin: '',
  pprofTrustedProxies: [],
  playback: false,
  playbackAddress: '',
  playbackEncryption: false,
  playbackServerKey: '',
  playbackServerCert: '',
  playbackAllowOrigin: '',
  playbackTrustedProxies: [],
  rtsp: false,
  rtspTransports: [],
  rtspEncryption: '',
  rtspAddress: '',
  rtspsAddress: '',
  rtpAddress: '',
  rtcpAddress: '',
  multicastIPRange: '',
  multicastRTPPort: 0,
  multicastRTCPPort: 0,
  srtpAddress: '',
  srtcpAddress: '',
  multicastSRTPPort: 0,
  multicastSRTCPPort: 0,
  rtspServerKey: '',
  rtspServerCert: '',
  rtspAuthMethods: [],
  rtmp: false,
  rtmpAddress: '',
  rtmpEncryption: '',
  rtmpsAddress: '',
  rtmpServerKey: '',
  rtmpServerCert: '',
  hls: false,
  hlsAddress: '',
  hlsEncryption: false,
  hlsServerKey: '',
  hlsServerCert: '',
  hlsAllowOrigin: '',
  hlsTrustedProxies: [],
  hlsAlwaysRemux: false,
  hlsVariant: '',
  hlsSegmentCount: 0,
  hlsSegmentDuration: '',
  hlsPartDuration: '',
  hlsSegmentMaxSize: '',
  hlsDirectory: '',
  hlsMuxerCloseAfter: '',
  webrtc: false,
  webrtcAddress: '',
  webrtcEncryption: false,
  webrtcServerKey: '',
  webrtcServerCert: '',
  webrtcAllowOrigin: '',
  webrtcTrustedProxies: [],
  webrtcLocalUDPAddress: '',
  webrtcLocalTCPAddress: '',
  webrtcIPsFromInterfaces: false,
  webrtcIPsFromInterfacesList: [],
  webrtcAdditionalHosts: [],
  webrtcICEServers2: [{url: '', username: '', password: '', clientOnly: false}],
  webrtcHandshakeTimeout: '',
  webrtcTrackGatherTimeout: '',
  webrtcSTUNGatherTimeout: '',
  srt: false,
  srtAddress: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/global/patch',
  headers: {'content-type': 'application/json'},
  body: {
    logLevel: '',
    logDestinations: [],
    logFile: '',
    sysLogPrefix: '',
    readTimeout: '',
    writeTimeout: '',
    writeQueueSize: 0,
    udpMaxPayloadSize: 0,
    udpReadBufferSize: 0,
    runOnConnect: '',
    runOnConnectRestart: false,
    runOnDisconnect: '',
    authMethod: '',
    authInternalUsers: [{user: '', pass: '', ips: [], permissions: [{action: '', path: ''}]}],
    authHTTPAddress: '',
    authHTTPExclude: [{}],
    authJWTJWKS: '',
    authJWTJWKSFingerprint: '',
    authJWTClaimKey: '',
    authJWTExclude: [{}],
    authJWTInHTTPQuery: false,
    api: false,
    apiAddress: '',
    apiEncryption: false,
    apiServerKey: '',
    apiServerCert: '',
    apiAllowOrigin: '',
    apiTrustedProxies: [],
    metrics: false,
    metricsAddress: '',
    metricsEncryption: false,
    metricsServerKey: '',
    metricsServerCert: '',
    metricsAllowOrigin: '',
    metricsTrustedProxies: [],
    pprof: false,
    pprofAddress: '',
    pprofEncryption: false,
    pprofServerKey: '',
    pprofServerCert: '',
    pprofAllowOrigin: '',
    pprofTrustedProxies: [],
    playback: false,
    playbackAddress: '',
    playbackEncryption: false,
    playbackServerKey: '',
    playbackServerCert: '',
    playbackAllowOrigin: '',
    playbackTrustedProxies: [],
    rtsp: false,
    rtspTransports: [],
    rtspEncryption: '',
    rtspAddress: '',
    rtspsAddress: '',
    rtpAddress: '',
    rtcpAddress: '',
    multicastIPRange: '',
    multicastRTPPort: 0,
    multicastRTCPPort: 0,
    srtpAddress: '',
    srtcpAddress: '',
    multicastSRTPPort: 0,
    multicastSRTCPPort: 0,
    rtspServerKey: '',
    rtspServerCert: '',
    rtspAuthMethods: [],
    rtmp: false,
    rtmpAddress: '',
    rtmpEncryption: '',
    rtmpsAddress: '',
    rtmpServerKey: '',
    rtmpServerCert: '',
    hls: false,
    hlsAddress: '',
    hlsEncryption: false,
    hlsServerKey: '',
    hlsServerCert: '',
    hlsAllowOrigin: '',
    hlsTrustedProxies: [],
    hlsAlwaysRemux: false,
    hlsVariant: '',
    hlsSegmentCount: 0,
    hlsSegmentDuration: '',
    hlsPartDuration: '',
    hlsSegmentMaxSize: '',
    hlsDirectory: '',
    hlsMuxerCloseAfter: '',
    webrtc: false,
    webrtcAddress: '',
    webrtcEncryption: false,
    webrtcServerKey: '',
    webrtcServerCert: '',
    webrtcAllowOrigin: '',
    webrtcTrustedProxies: [],
    webrtcLocalUDPAddress: '',
    webrtcLocalTCPAddress: '',
    webrtcIPsFromInterfaces: false,
    webrtcIPsFromInterfacesList: [],
    webrtcAdditionalHosts: [],
    webrtcICEServers2: [{url: '', username: '', password: '', clientOnly: false}],
    webrtcHandshakeTimeout: '',
    webrtcTrackGatherTimeout: '',
    webrtcSTUNGatherTimeout: '',
    srt: false,
    srtAddress: ''
  },
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/v3/config/global/patch');

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

req.type('json');
req.send({
  logLevel: '',
  logDestinations: [],
  logFile: '',
  sysLogPrefix: '',
  readTimeout: '',
  writeTimeout: '',
  writeQueueSize: 0,
  udpMaxPayloadSize: 0,
  udpReadBufferSize: 0,
  runOnConnect: '',
  runOnConnectRestart: false,
  runOnDisconnect: '',
  authMethod: '',
  authInternalUsers: [
    {
      user: '',
      pass: '',
      ips: [],
      permissions: [
        {
          action: '',
          path: ''
        }
      ]
    }
  ],
  authHTTPAddress: '',
  authHTTPExclude: [
    {}
  ],
  authJWTJWKS: '',
  authJWTJWKSFingerprint: '',
  authJWTClaimKey: '',
  authJWTExclude: [
    {}
  ],
  authJWTInHTTPQuery: false,
  api: false,
  apiAddress: '',
  apiEncryption: false,
  apiServerKey: '',
  apiServerCert: '',
  apiAllowOrigin: '',
  apiTrustedProxies: [],
  metrics: false,
  metricsAddress: '',
  metricsEncryption: false,
  metricsServerKey: '',
  metricsServerCert: '',
  metricsAllowOrigin: '',
  metricsTrustedProxies: [],
  pprof: false,
  pprofAddress: '',
  pprofEncryption: false,
  pprofServerKey: '',
  pprofServerCert: '',
  pprofAllowOrigin: '',
  pprofTrustedProxies: [],
  playback: false,
  playbackAddress: '',
  playbackEncryption: false,
  playbackServerKey: '',
  playbackServerCert: '',
  playbackAllowOrigin: '',
  playbackTrustedProxies: [],
  rtsp: false,
  rtspTransports: [],
  rtspEncryption: '',
  rtspAddress: '',
  rtspsAddress: '',
  rtpAddress: '',
  rtcpAddress: '',
  multicastIPRange: '',
  multicastRTPPort: 0,
  multicastRTCPPort: 0,
  srtpAddress: '',
  srtcpAddress: '',
  multicastSRTPPort: 0,
  multicastSRTCPPort: 0,
  rtspServerKey: '',
  rtspServerCert: '',
  rtspAuthMethods: [],
  rtmp: false,
  rtmpAddress: '',
  rtmpEncryption: '',
  rtmpsAddress: '',
  rtmpServerKey: '',
  rtmpServerCert: '',
  hls: false,
  hlsAddress: '',
  hlsEncryption: false,
  hlsServerKey: '',
  hlsServerCert: '',
  hlsAllowOrigin: '',
  hlsTrustedProxies: [],
  hlsAlwaysRemux: false,
  hlsVariant: '',
  hlsSegmentCount: 0,
  hlsSegmentDuration: '',
  hlsPartDuration: '',
  hlsSegmentMaxSize: '',
  hlsDirectory: '',
  hlsMuxerCloseAfter: '',
  webrtc: false,
  webrtcAddress: '',
  webrtcEncryption: false,
  webrtcServerKey: '',
  webrtcServerCert: '',
  webrtcAllowOrigin: '',
  webrtcTrustedProxies: [],
  webrtcLocalUDPAddress: '',
  webrtcLocalTCPAddress: '',
  webrtcIPsFromInterfaces: false,
  webrtcIPsFromInterfacesList: [],
  webrtcAdditionalHosts: [],
  webrtcICEServers2: [
    {
      url: '',
      username: '',
      password: '',
      clientOnly: false
    }
  ],
  webrtcHandshakeTimeout: '',
  webrtcTrackGatherTimeout: '',
  webrtcSTUNGatherTimeout: '',
  srt: false,
  srtAddress: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/v3/config/global/patch',
  headers: {'content-type': 'application/json'},
  data: {
    logLevel: '',
    logDestinations: [],
    logFile: '',
    sysLogPrefix: '',
    readTimeout: '',
    writeTimeout: '',
    writeQueueSize: 0,
    udpMaxPayloadSize: 0,
    udpReadBufferSize: 0,
    runOnConnect: '',
    runOnConnectRestart: false,
    runOnDisconnect: '',
    authMethod: '',
    authInternalUsers: [{user: '', pass: '', ips: [], permissions: [{action: '', path: ''}]}],
    authHTTPAddress: '',
    authHTTPExclude: [{}],
    authJWTJWKS: '',
    authJWTJWKSFingerprint: '',
    authJWTClaimKey: '',
    authJWTExclude: [{}],
    authJWTInHTTPQuery: false,
    api: false,
    apiAddress: '',
    apiEncryption: false,
    apiServerKey: '',
    apiServerCert: '',
    apiAllowOrigin: '',
    apiTrustedProxies: [],
    metrics: false,
    metricsAddress: '',
    metricsEncryption: false,
    metricsServerKey: '',
    metricsServerCert: '',
    metricsAllowOrigin: '',
    metricsTrustedProxies: [],
    pprof: false,
    pprofAddress: '',
    pprofEncryption: false,
    pprofServerKey: '',
    pprofServerCert: '',
    pprofAllowOrigin: '',
    pprofTrustedProxies: [],
    playback: false,
    playbackAddress: '',
    playbackEncryption: false,
    playbackServerKey: '',
    playbackServerCert: '',
    playbackAllowOrigin: '',
    playbackTrustedProxies: [],
    rtsp: false,
    rtspTransports: [],
    rtspEncryption: '',
    rtspAddress: '',
    rtspsAddress: '',
    rtpAddress: '',
    rtcpAddress: '',
    multicastIPRange: '',
    multicastRTPPort: 0,
    multicastRTCPPort: 0,
    srtpAddress: '',
    srtcpAddress: '',
    multicastSRTPPort: 0,
    multicastSRTCPPort: 0,
    rtspServerKey: '',
    rtspServerCert: '',
    rtspAuthMethods: [],
    rtmp: false,
    rtmpAddress: '',
    rtmpEncryption: '',
    rtmpsAddress: '',
    rtmpServerKey: '',
    rtmpServerCert: '',
    hls: false,
    hlsAddress: '',
    hlsEncryption: false,
    hlsServerKey: '',
    hlsServerCert: '',
    hlsAllowOrigin: '',
    hlsTrustedProxies: [],
    hlsAlwaysRemux: false,
    hlsVariant: '',
    hlsSegmentCount: 0,
    hlsSegmentDuration: '',
    hlsPartDuration: '',
    hlsSegmentMaxSize: '',
    hlsDirectory: '',
    hlsMuxerCloseAfter: '',
    webrtc: false,
    webrtcAddress: '',
    webrtcEncryption: false,
    webrtcServerKey: '',
    webrtcServerCert: '',
    webrtcAllowOrigin: '',
    webrtcTrustedProxies: [],
    webrtcLocalUDPAddress: '',
    webrtcLocalTCPAddress: '',
    webrtcIPsFromInterfaces: false,
    webrtcIPsFromInterfacesList: [],
    webrtcAdditionalHosts: [],
    webrtcICEServers2: [{url: '', username: '', password: '', clientOnly: false}],
    webrtcHandshakeTimeout: '',
    webrtcTrackGatherTimeout: '',
    webrtcSTUNGatherTimeout: '',
    srt: false,
    srtAddress: ''
  }
};

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

const url = '{{baseUrl}}/v3/config/global/patch';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"logLevel":"","logDestinations":[],"logFile":"","sysLogPrefix":"","readTimeout":"","writeTimeout":"","writeQueueSize":0,"udpMaxPayloadSize":0,"udpReadBufferSize":0,"runOnConnect":"","runOnConnectRestart":false,"runOnDisconnect":"","authMethod":"","authInternalUsers":[{"user":"","pass":"","ips":[],"permissions":[{"action":"","path":""}]}],"authHTTPAddress":"","authHTTPExclude":[{}],"authJWTJWKS":"","authJWTJWKSFingerprint":"","authJWTClaimKey":"","authJWTExclude":[{}],"authJWTInHTTPQuery":false,"api":false,"apiAddress":"","apiEncryption":false,"apiServerKey":"","apiServerCert":"","apiAllowOrigin":"","apiTrustedProxies":[],"metrics":false,"metricsAddress":"","metricsEncryption":false,"metricsServerKey":"","metricsServerCert":"","metricsAllowOrigin":"","metricsTrustedProxies":[],"pprof":false,"pprofAddress":"","pprofEncryption":false,"pprofServerKey":"","pprofServerCert":"","pprofAllowOrigin":"","pprofTrustedProxies":[],"playback":false,"playbackAddress":"","playbackEncryption":false,"playbackServerKey":"","playbackServerCert":"","playbackAllowOrigin":"","playbackTrustedProxies":[],"rtsp":false,"rtspTransports":[],"rtspEncryption":"","rtspAddress":"","rtspsAddress":"","rtpAddress":"","rtcpAddress":"","multicastIPRange":"","multicastRTPPort":0,"multicastRTCPPort":0,"srtpAddress":"","srtcpAddress":"","multicastSRTPPort":0,"multicastSRTCPPort":0,"rtspServerKey":"","rtspServerCert":"","rtspAuthMethods":[],"rtmp":false,"rtmpAddress":"","rtmpEncryption":"","rtmpsAddress":"","rtmpServerKey":"","rtmpServerCert":"","hls":false,"hlsAddress":"","hlsEncryption":false,"hlsServerKey":"","hlsServerCert":"","hlsAllowOrigin":"","hlsTrustedProxies":[],"hlsAlwaysRemux":false,"hlsVariant":"","hlsSegmentCount":0,"hlsSegmentDuration":"","hlsPartDuration":"","hlsSegmentMaxSize":"","hlsDirectory":"","hlsMuxerCloseAfter":"","webrtc":false,"webrtcAddress":"","webrtcEncryption":false,"webrtcServerKey":"","webrtcServerCert":"","webrtcAllowOrigin":"","webrtcTrustedProxies":[],"webrtcLocalUDPAddress":"","webrtcLocalTCPAddress":"","webrtcIPsFromInterfaces":false,"webrtcIPsFromInterfacesList":[],"webrtcAdditionalHosts":[],"webrtcICEServers2":[{"url":"","username":"","password":"","clientOnly":false}],"webrtcHandshakeTimeout":"","webrtcTrackGatherTimeout":"","webrtcSTUNGatherTimeout":"","srt":false,"srtAddress":""}'
};

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 = @{ @"logLevel": @"",
                              @"logDestinations": @[  ],
                              @"logFile": @"",
                              @"sysLogPrefix": @"",
                              @"readTimeout": @"",
                              @"writeTimeout": @"",
                              @"writeQueueSize": @0,
                              @"udpMaxPayloadSize": @0,
                              @"udpReadBufferSize": @0,
                              @"runOnConnect": @"",
                              @"runOnConnectRestart": @NO,
                              @"runOnDisconnect": @"",
                              @"authMethod": @"",
                              @"authInternalUsers": @[ @{ @"user": @"", @"pass": @"", @"ips": @[  ], @"permissions": @[ @{ @"action": @"", @"path": @"" } ] } ],
                              @"authHTTPAddress": @"",
                              @"authHTTPExclude": @[ @{  } ],
                              @"authJWTJWKS": @"",
                              @"authJWTJWKSFingerprint": @"",
                              @"authJWTClaimKey": @"",
                              @"authJWTExclude": @[ @{  } ],
                              @"authJWTInHTTPQuery": @NO,
                              @"api": @NO,
                              @"apiAddress": @"",
                              @"apiEncryption": @NO,
                              @"apiServerKey": @"",
                              @"apiServerCert": @"",
                              @"apiAllowOrigin": @"",
                              @"apiTrustedProxies": @[  ],
                              @"metrics": @NO,
                              @"metricsAddress": @"",
                              @"metricsEncryption": @NO,
                              @"metricsServerKey": @"",
                              @"metricsServerCert": @"",
                              @"metricsAllowOrigin": @"",
                              @"metricsTrustedProxies": @[  ],
                              @"pprof": @NO,
                              @"pprofAddress": @"",
                              @"pprofEncryption": @NO,
                              @"pprofServerKey": @"",
                              @"pprofServerCert": @"",
                              @"pprofAllowOrigin": @"",
                              @"pprofTrustedProxies": @[  ],
                              @"playback": @NO,
                              @"playbackAddress": @"",
                              @"playbackEncryption": @NO,
                              @"playbackServerKey": @"",
                              @"playbackServerCert": @"",
                              @"playbackAllowOrigin": @"",
                              @"playbackTrustedProxies": @[  ],
                              @"rtsp": @NO,
                              @"rtspTransports": @[  ],
                              @"rtspEncryption": @"",
                              @"rtspAddress": @"",
                              @"rtspsAddress": @"",
                              @"rtpAddress": @"",
                              @"rtcpAddress": @"",
                              @"multicastIPRange": @"",
                              @"multicastRTPPort": @0,
                              @"multicastRTCPPort": @0,
                              @"srtpAddress": @"",
                              @"srtcpAddress": @"",
                              @"multicastSRTPPort": @0,
                              @"multicastSRTCPPort": @0,
                              @"rtspServerKey": @"",
                              @"rtspServerCert": @"",
                              @"rtspAuthMethods": @[  ],
                              @"rtmp": @NO,
                              @"rtmpAddress": @"",
                              @"rtmpEncryption": @"",
                              @"rtmpsAddress": @"",
                              @"rtmpServerKey": @"",
                              @"rtmpServerCert": @"",
                              @"hls": @NO,
                              @"hlsAddress": @"",
                              @"hlsEncryption": @NO,
                              @"hlsServerKey": @"",
                              @"hlsServerCert": @"",
                              @"hlsAllowOrigin": @"",
                              @"hlsTrustedProxies": @[  ],
                              @"hlsAlwaysRemux": @NO,
                              @"hlsVariant": @"",
                              @"hlsSegmentCount": @0,
                              @"hlsSegmentDuration": @"",
                              @"hlsPartDuration": @"",
                              @"hlsSegmentMaxSize": @"",
                              @"hlsDirectory": @"",
                              @"hlsMuxerCloseAfter": @"",
                              @"webrtc": @NO,
                              @"webrtcAddress": @"",
                              @"webrtcEncryption": @NO,
                              @"webrtcServerKey": @"",
                              @"webrtcServerCert": @"",
                              @"webrtcAllowOrigin": @"",
                              @"webrtcTrustedProxies": @[  ],
                              @"webrtcLocalUDPAddress": @"",
                              @"webrtcLocalTCPAddress": @"",
                              @"webrtcIPsFromInterfaces": @NO,
                              @"webrtcIPsFromInterfacesList": @[  ],
                              @"webrtcAdditionalHosts": @[  ],
                              @"webrtcICEServers2": @[ @{ @"url": @"", @"username": @"", @"password": @"", @"clientOnly": @NO } ],
                              @"webrtcHandshakeTimeout": @"",
                              @"webrtcTrackGatherTimeout": @"",
                              @"webrtcSTUNGatherTimeout": @"",
                              @"srt": @NO,
                              @"srtAddress": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/config/global/patch"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PATCH"];
[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}}/v3/config/global/patch" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/config/global/patch",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PATCH",
  CURLOPT_POSTFIELDS => json_encode([
    'logLevel' => '',
    'logDestinations' => [
        
    ],
    'logFile' => '',
    'sysLogPrefix' => '',
    'readTimeout' => '',
    'writeTimeout' => '',
    'writeQueueSize' => 0,
    'udpMaxPayloadSize' => 0,
    'udpReadBufferSize' => 0,
    'runOnConnect' => '',
    'runOnConnectRestart' => null,
    'runOnDisconnect' => '',
    'authMethod' => '',
    'authInternalUsers' => [
        [
                'user' => '',
                'pass' => '',
                'ips' => [
                                
                ],
                'permissions' => [
                                [
                                                                'action' => '',
                                                                'path' => ''
                                ]
                ]
        ]
    ],
    'authHTTPAddress' => '',
    'authHTTPExclude' => [
        [
                
        ]
    ],
    'authJWTJWKS' => '',
    'authJWTJWKSFingerprint' => '',
    'authJWTClaimKey' => '',
    'authJWTExclude' => [
        [
                
        ]
    ],
    'authJWTInHTTPQuery' => null,
    'api' => null,
    'apiAddress' => '',
    'apiEncryption' => null,
    'apiServerKey' => '',
    'apiServerCert' => '',
    'apiAllowOrigin' => '',
    'apiTrustedProxies' => [
        
    ],
    'metrics' => null,
    'metricsAddress' => '',
    'metricsEncryption' => null,
    'metricsServerKey' => '',
    'metricsServerCert' => '',
    'metricsAllowOrigin' => '',
    'metricsTrustedProxies' => [
        
    ],
    'pprof' => null,
    'pprofAddress' => '',
    'pprofEncryption' => null,
    'pprofServerKey' => '',
    'pprofServerCert' => '',
    'pprofAllowOrigin' => '',
    'pprofTrustedProxies' => [
        
    ],
    'playback' => null,
    'playbackAddress' => '',
    'playbackEncryption' => null,
    'playbackServerKey' => '',
    'playbackServerCert' => '',
    'playbackAllowOrigin' => '',
    'playbackTrustedProxies' => [
        
    ],
    'rtsp' => null,
    'rtspTransports' => [
        
    ],
    'rtspEncryption' => '',
    'rtspAddress' => '',
    'rtspsAddress' => '',
    'rtpAddress' => '',
    'rtcpAddress' => '',
    'multicastIPRange' => '',
    'multicastRTPPort' => 0,
    'multicastRTCPPort' => 0,
    'srtpAddress' => '',
    'srtcpAddress' => '',
    'multicastSRTPPort' => 0,
    'multicastSRTCPPort' => 0,
    'rtspServerKey' => '',
    'rtspServerCert' => '',
    'rtspAuthMethods' => [
        
    ],
    'rtmp' => null,
    'rtmpAddress' => '',
    'rtmpEncryption' => '',
    'rtmpsAddress' => '',
    'rtmpServerKey' => '',
    'rtmpServerCert' => '',
    'hls' => null,
    'hlsAddress' => '',
    'hlsEncryption' => null,
    'hlsServerKey' => '',
    'hlsServerCert' => '',
    'hlsAllowOrigin' => '',
    'hlsTrustedProxies' => [
        
    ],
    'hlsAlwaysRemux' => null,
    'hlsVariant' => '',
    'hlsSegmentCount' => 0,
    'hlsSegmentDuration' => '',
    'hlsPartDuration' => '',
    'hlsSegmentMaxSize' => '',
    'hlsDirectory' => '',
    'hlsMuxerCloseAfter' => '',
    'webrtc' => null,
    'webrtcAddress' => '',
    'webrtcEncryption' => null,
    'webrtcServerKey' => '',
    'webrtcServerCert' => '',
    'webrtcAllowOrigin' => '',
    'webrtcTrustedProxies' => [
        
    ],
    'webrtcLocalUDPAddress' => '',
    'webrtcLocalTCPAddress' => '',
    'webrtcIPsFromInterfaces' => null,
    'webrtcIPsFromInterfacesList' => [
        
    ],
    'webrtcAdditionalHosts' => [
        
    ],
    'webrtcICEServers2' => [
        [
                'url' => '',
                'username' => '',
                'password' => '',
                'clientOnly' => null
        ]
    ],
    'webrtcHandshakeTimeout' => '',
    'webrtcTrackGatherTimeout' => '',
    'webrtcSTUNGatherTimeout' => '',
    'srt' => null,
    'srtAddress' => ''
  ]),
  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('PATCH', '{{baseUrl}}/v3/config/global/patch', [
  'body' => '{
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    {
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        {
          "action": "",
          "path": ""
        }
      ]
    }
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [
    {}
  ],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [
    {}
  ],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    {
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    }
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/global/patch');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'logLevel' => '',
  'logDestinations' => [
    
  ],
  'logFile' => '',
  'sysLogPrefix' => '',
  'readTimeout' => '',
  'writeTimeout' => '',
  'writeQueueSize' => 0,
  'udpMaxPayloadSize' => 0,
  'udpReadBufferSize' => 0,
  'runOnConnect' => '',
  'runOnConnectRestart' => null,
  'runOnDisconnect' => '',
  'authMethod' => '',
  'authInternalUsers' => [
    [
        'user' => '',
        'pass' => '',
        'ips' => [
                
        ],
        'permissions' => [
                [
                                'action' => '',
                                'path' => ''
                ]
        ]
    ]
  ],
  'authHTTPAddress' => '',
  'authHTTPExclude' => [
    [
        
    ]
  ],
  'authJWTJWKS' => '',
  'authJWTJWKSFingerprint' => '',
  'authJWTClaimKey' => '',
  'authJWTExclude' => [
    [
        
    ]
  ],
  'authJWTInHTTPQuery' => null,
  'api' => null,
  'apiAddress' => '',
  'apiEncryption' => null,
  'apiServerKey' => '',
  'apiServerCert' => '',
  'apiAllowOrigin' => '',
  'apiTrustedProxies' => [
    
  ],
  'metrics' => null,
  'metricsAddress' => '',
  'metricsEncryption' => null,
  'metricsServerKey' => '',
  'metricsServerCert' => '',
  'metricsAllowOrigin' => '',
  'metricsTrustedProxies' => [
    
  ],
  'pprof' => null,
  'pprofAddress' => '',
  'pprofEncryption' => null,
  'pprofServerKey' => '',
  'pprofServerCert' => '',
  'pprofAllowOrigin' => '',
  'pprofTrustedProxies' => [
    
  ],
  'playback' => null,
  'playbackAddress' => '',
  'playbackEncryption' => null,
  'playbackServerKey' => '',
  'playbackServerCert' => '',
  'playbackAllowOrigin' => '',
  'playbackTrustedProxies' => [
    
  ],
  'rtsp' => null,
  'rtspTransports' => [
    
  ],
  'rtspEncryption' => '',
  'rtspAddress' => '',
  'rtspsAddress' => '',
  'rtpAddress' => '',
  'rtcpAddress' => '',
  'multicastIPRange' => '',
  'multicastRTPPort' => 0,
  'multicastRTCPPort' => 0,
  'srtpAddress' => '',
  'srtcpAddress' => '',
  'multicastSRTPPort' => 0,
  'multicastSRTCPPort' => 0,
  'rtspServerKey' => '',
  'rtspServerCert' => '',
  'rtspAuthMethods' => [
    
  ],
  'rtmp' => null,
  'rtmpAddress' => '',
  'rtmpEncryption' => '',
  'rtmpsAddress' => '',
  'rtmpServerKey' => '',
  'rtmpServerCert' => '',
  'hls' => null,
  'hlsAddress' => '',
  'hlsEncryption' => null,
  'hlsServerKey' => '',
  'hlsServerCert' => '',
  'hlsAllowOrigin' => '',
  'hlsTrustedProxies' => [
    
  ],
  'hlsAlwaysRemux' => null,
  'hlsVariant' => '',
  'hlsSegmentCount' => 0,
  'hlsSegmentDuration' => '',
  'hlsPartDuration' => '',
  'hlsSegmentMaxSize' => '',
  'hlsDirectory' => '',
  'hlsMuxerCloseAfter' => '',
  'webrtc' => null,
  'webrtcAddress' => '',
  'webrtcEncryption' => null,
  'webrtcServerKey' => '',
  'webrtcServerCert' => '',
  'webrtcAllowOrigin' => '',
  'webrtcTrustedProxies' => [
    
  ],
  'webrtcLocalUDPAddress' => '',
  'webrtcLocalTCPAddress' => '',
  'webrtcIPsFromInterfaces' => null,
  'webrtcIPsFromInterfacesList' => [
    
  ],
  'webrtcAdditionalHosts' => [
    
  ],
  'webrtcICEServers2' => [
    [
        'url' => '',
        'username' => '',
        'password' => '',
        'clientOnly' => null
    ]
  ],
  'webrtcHandshakeTimeout' => '',
  'webrtcTrackGatherTimeout' => '',
  'webrtcSTUNGatherTimeout' => '',
  'srt' => null,
  'srtAddress' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'logLevel' => '',
  'logDestinations' => [
    
  ],
  'logFile' => '',
  'sysLogPrefix' => '',
  'readTimeout' => '',
  'writeTimeout' => '',
  'writeQueueSize' => 0,
  'udpMaxPayloadSize' => 0,
  'udpReadBufferSize' => 0,
  'runOnConnect' => '',
  'runOnConnectRestart' => null,
  'runOnDisconnect' => '',
  'authMethod' => '',
  'authInternalUsers' => [
    [
        'user' => '',
        'pass' => '',
        'ips' => [
                
        ],
        'permissions' => [
                [
                                'action' => '',
                                'path' => ''
                ]
        ]
    ]
  ],
  'authHTTPAddress' => '',
  'authHTTPExclude' => [
    [
        
    ]
  ],
  'authJWTJWKS' => '',
  'authJWTJWKSFingerprint' => '',
  'authJWTClaimKey' => '',
  'authJWTExclude' => [
    [
        
    ]
  ],
  'authJWTInHTTPQuery' => null,
  'api' => null,
  'apiAddress' => '',
  'apiEncryption' => null,
  'apiServerKey' => '',
  'apiServerCert' => '',
  'apiAllowOrigin' => '',
  'apiTrustedProxies' => [
    
  ],
  'metrics' => null,
  'metricsAddress' => '',
  'metricsEncryption' => null,
  'metricsServerKey' => '',
  'metricsServerCert' => '',
  'metricsAllowOrigin' => '',
  'metricsTrustedProxies' => [
    
  ],
  'pprof' => null,
  'pprofAddress' => '',
  'pprofEncryption' => null,
  'pprofServerKey' => '',
  'pprofServerCert' => '',
  'pprofAllowOrigin' => '',
  'pprofTrustedProxies' => [
    
  ],
  'playback' => null,
  'playbackAddress' => '',
  'playbackEncryption' => null,
  'playbackServerKey' => '',
  'playbackServerCert' => '',
  'playbackAllowOrigin' => '',
  'playbackTrustedProxies' => [
    
  ],
  'rtsp' => null,
  'rtspTransports' => [
    
  ],
  'rtspEncryption' => '',
  'rtspAddress' => '',
  'rtspsAddress' => '',
  'rtpAddress' => '',
  'rtcpAddress' => '',
  'multicastIPRange' => '',
  'multicastRTPPort' => 0,
  'multicastRTCPPort' => 0,
  'srtpAddress' => '',
  'srtcpAddress' => '',
  'multicastSRTPPort' => 0,
  'multicastSRTCPPort' => 0,
  'rtspServerKey' => '',
  'rtspServerCert' => '',
  'rtspAuthMethods' => [
    
  ],
  'rtmp' => null,
  'rtmpAddress' => '',
  'rtmpEncryption' => '',
  'rtmpsAddress' => '',
  'rtmpServerKey' => '',
  'rtmpServerCert' => '',
  'hls' => null,
  'hlsAddress' => '',
  'hlsEncryption' => null,
  'hlsServerKey' => '',
  'hlsServerCert' => '',
  'hlsAllowOrigin' => '',
  'hlsTrustedProxies' => [
    
  ],
  'hlsAlwaysRemux' => null,
  'hlsVariant' => '',
  'hlsSegmentCount' => 0,
  'hlsSegmentDuration' => '',
  'hlsPartDuration' => '',
  'hlsSegmentMaxSize' => '',
  'hlsDirectory' => '',
  'hlsMuxerCloseAfter' => '',
  'webrtc' => null,
  'webrtcAddress' => '',
  'webrtcEncryption' => null,
  'webrtcServerKey' => '',
  'webrtcServerCert' => '',
  'webrtcAllowOrigin' => '',
  'webrtcTrustedProxies' => [
    
  ],
  'webrtcLocalUDPAddress' => '',
  'webrtcLocalTCPAddress' => '',
  'webrtcIPsFromInterfaces' => null,
  'webrtcIPsFromInterfacesList' => [
    
  ],
  'webrtcAdditionalHosts' => [
    
  ],
  'webrtcICEServers2' => [
    [
        'url' => '',
        'username' => '',
        'password' => '',
        'clientOnly' => null
    ]
  ],
  'webrtcHandshakeTimeout' => '',
  'webrtcTrackGatherTimeout' => '',
  'webrtcSTUNGatherTimeout' => '',
  'srt' => null,
  'srtAddress' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/config/global/patch');
$request->setRequestMethod('PATCH');
$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}}/v3/config/global/patch' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    {
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        {
          "action": "",
          "path": ""
        }
      ]
    }
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [
    {}
  ],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [
    {}
  ],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    {
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    }
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/config/global/patch' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    {
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        {
          "action": "",
          "path": ""
        }
      ]
    }
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [
    {}
  ],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [
    {}
  ],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    {
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    }
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
}'
import http.client

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

payload = "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/v3/config/global/patch", payload, headers)

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

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

url = "{{baseUrl}}/v3/config/global/patch"

payload = {
    "logLevel": "",
    "logDestinations": [],
    "logFile": "",
    "sysLogPrefix": "",
    "readTimeout": "",
    "writeTimeout": "",
    "writeQueueSize": 0,
    "udpMaxPayloadSize": 0,
    "udpReadBufferSize": 0,
    "runOnConnect": "",
    "runOnConnectRestart": False,
    "runOnDisconnect": "",
    "authMethod": "",
    "authInternalUsers": [
        {
            "user": "",
            "pass": "",
            "ips": [],
            "permissions": [
                {
                    "action": "",
                    "path": ""
                }
            ]
        }
    ],
    "authHTTPAddress": "",
    "authHTTPExclude": [{}],
    "authJWTJWKS": "",
    "authJWTJWKSFingerprint": "",
    "authJWTClaimKey": "",
    "authJWTExclude": [{}],
    "authJWTInHTTPQuery": False,
    "api": False,
    "apiAddress": "",
    "apiEncryption": False,
    "apiServerKey": "",
    "apiServerCert": "",
    "apiAllowOrigin": "",
    "apiTrustedProxies": [],
    "metrics": False,
    "metricsAddress": "",
    "metricsEncryption": False,
    "metricsServerKey": "",
    "metricsServerCert": "",
    "metricsAllowOrigin": "",
    "metricsTrustedProxies": [],
    "pprof": False,
    "pprofAddress": "",
    "pprofEncryption": False,
    "pprofServerKey": "",
    "pprofServerCert": "",
    "pprofAllowOrigin": "",
    "pprofTrustedProxies": [],
    "playback": False,
    "playbackAddress": "",
    "playbackEncryption": False,
    "playbackServerKey": "",
    "playbackServerCert": "",
    "playbackAllowOrigin": "",
    "playbackTrustedProxies": [],
    "rtsp": False,
    "rtspTransports": [],
    "rtspEncryption": "",
    "rtspAddress": "",
    "rtspsAddress": "",
    "rtpAddress": "",
    "rtcpAddress": "",
    "multicastIPRange": "",
    "multicastRTPPort": 0,
    "multicastRTCPPort": 0,
    "srtpAddress": "",
    "srtcpAddress": "",
    "multicastSRTPPort": 0,
    "multicastSRTCPPort": 0,
    "rtspServerKey": "",
    "rtspServerCert": "",
    "rtspAuthMethods": [],
    "rtmp": False,
    "rtmpAddress": "",
    "rtmpEncryption": "",
    "rtmpsAddress": "",
    "rtmpServerKey": "",
    "rtmpServerCert": "",
    "hls": False,
    "hlsAddress": "",
    "hlsEncryption": False,
    "hlsServerKey": "",
    "hlsServerCert": "",
    "hlsAllowOrigin": "",
    "hlsTrustedProxies": [],
    "hlsAlwaysRemux": False,
    "hlsVariant": "",
    "hlsSegmentCount": 0,
    "hlsSegmentDuration": "",
    "hlsPartDuration": "",
    "hlsSegmentMaxSize": "",
    "hlsDirectory": "",
    "hlsMuxerCloseAfter": "",
    "webrtc": False,
    "webrtcAddress": "",
    "webrtcEncryption": False,
    "webrtcServerKey": "",
    "webrtcServerCert": "",
    "webrtcAllowOrigin": "",
    "webrtcTrustedProxies": [],
    "webrtcLocalUDPAddress": "",
    "webrtcLocalTCPAddress": "",
    "webrtcIPsFromInterfaces": False,
    "webrtcIPsFromInterfacesList": [],
    "webrtcAdditionalHosts": [],
    "webrtcICEServers2": [
        {
            "url": "",
            "username": "",
            "password": "",
            "clientOnly": False
        }
    ],
    "webrtcHandshakeTimeout": "",
    "webrtcTrackGatherTimeout": "",
    "webrtcSTUNGatherTimeout": "",
    "srt": False,
    "srtAddress": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/config/global/patch"

payload <- "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/v3/config/global/patch")

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

request = Net::HTTP::Patch.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\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.patch('/baseUrl/v3/config/global/patch') do |req|
  req.body = "{\n  \"logLevel\": \"\",\n  \"logDestinations\": [],\n  \"logFile\": \"\",\n  \"sysLogPrefix\": \"\",\n  \"readTimeout\": \"\",\n  \"writeTimeout\": \"\",\n  \"writeQueueSize\": 0,\n  \"udpMaxPayloadSize\": 0,\n  \"udpReadBufferSize\": 0,\n  \"runOnConnect\": \"\",\n  \"runOnConnectRestart\": false,\n  \"runOnDisconnect\": \"\",\n  \"authMethod\": \"\",\n  \"authInternalUsers\": [\n    {\n      \"user\": \"\",\n      \"pass\": \"\",\n      \"ips\": [],\n      \"permissions\": [\n        {\n          \"action\": \"\",\n          \"path\": \"\"\n        }\n      ]\n    }\n  ],\n  \"authHTTPAddress\": \"\",\n  \"authHTTPExclude\": [\n    {}\n  ],\n  \"authJWTJWKS\": \"\",\n  \"authJWTJWKSFingerprint\": \"\",\n  \"authJWTClaimKey\": \"\",\n  \"authJWTExclude\": [\n    {}\n  ],\n  \"authJWTInHTTPQuery\": false,\n  \"api\": false,\n  \"apiAddress\": \"\",\n  \"apiEncryption\": false,\n  \"apiServerKey\": \"\",\n  \"apiServerCert\": \"\",\n  \"apiAllowOrigin\": \"\",\n  \"apiTrustedProxies\": [],\n  \"metrics\": false,\n  \"metricsAddress\": \"\",\n  \"metricsEncryption\": false,\n  \"metricsServerKey\": \"\",\n  \"metricsServerCert\": \"\",\n  \"metricsAllowOrigin\": \"\",\n  \"metricsTrustedProxies\": [],\n  \"pprof\": false,\n  \"pprofAddress\": \"\",\n  \"pprofEncryption\": false,\n  \"pprofServerKey\": \"\",\n  \"pprofServerCert\": \"\",\n  \"pprofAllowOrigin\": \"\",\n  \"pprofTrustedProxies\": [],\n  \"playback\": false,\n  \"playbackAddress\": \"\",\n  \"playbackEncryption\": false,\n  \"playbackServerKey\": \"\",\n  \"playbackServerCert\": \"\",\n  \"playbackAllowOrigin\": \"\",\n  \"playbackTrustedProxies\": [],\n  \"rtsp\": false,\n  \"rtspTransports\": [],\n  \"rtspEncryption\": \"\",\n  \"rtspAddress\": \"\",\n  \"rtspsAddress\": \"\",\n  \"rtpAddress\": \"\",\n  \"rtcpAddress\": \"\",\n  \"multicastIPRange\": \"\",\n  \"multicastRTPPort\": 0,\n  \"multicastRTCPPort\": 0,\n  \"srtpAddress\": \"\",\n  \"srtcpAddress\": \"\",\n  \"multicastSRTPPort\": 0,\n  \"multicastSRTCPPort\": 0,\n  \"rtspServerKey\": \"\",\n  \"rtspServerCert\": \"\",\n  \"rtspAuthMethods\": [],\n  \"rtmp\": false,\n  \"rtmpAddress\": \"\",\n  \"rtmpEncryption\": \"\",\n  \"rtmpsAddress\": \"\",\n  \"rtmpServerKey\": \"\",\n  \"rtmpServerCert\": \"\",\n  \"hls\": false,\n  \"hlsAddress\": \"\",\n  \"hlsEncryption\": false,\n  \"hlsServerKey\": \"\",\n  \"hlsServerCert\": \"\",\n  \"hlsAllowOrigin\": \"\",\n  \"hlsTrustedProxies\": [],\n  \"hlsAlwaysRemux\": false,\n  \"hlsVariant\": \"\",\n  \"hlsSegmentCount\": 0,\n  \"hlsSegmentDuration\": \"\",\n  \"hlsPartDuration\": \"\",\n  \"hlsSegmentMaxSize\": \"\",\n  \"hlsDirectory\": \"\",\n  \"hlsMuxerCloseAfter\": \"\",\n  \"webrtc\": false,\n  \"webrtcAddress\": \"\",\n  \"webrtcEncryption\": false,\n  \"webrtcServerKey\": \"\",\n  \"webrtcServerCert\": \"\",\n  \"webrtcAllowOrigin\": \"\",\n  \"webrtcTrustedProxies\": [],\n  \"webrtcLocalUDPAddress\": \"\",\n  \"webrtcLocalTCPAddress\": \"\",\n  \"webrtcIPsFromInterfaces\": false,\n  \"webrtcIPsFromInterfacesList\": [],\n  \"webrtcAdditionalHosts\": [],\n  \"webrtcICEServers2\": [\n    {\n      \"url\": \"\",\n      \"username\": \"\",\n      \"password\": \"\",\n      \"clientOnly\": false\n    }\n  ],\n  \"webrtcHandshakeTimeout\": \"\",\n  \"webrtcTrackGatherTimeout\": \"\",\n  \"webrtcSTUNGatherTimeout\": \"\",\n  \"srt\": false,\n  \"srtAddress\": \"\"\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}}/v3/config/global/patch";

    let payload = json!({
        "logLevel": "",
        "logDestinations": (),
        "logFile": "",
        "sysLogPrefix": "",
        "readTimeout": "",
        "writeTimeout": "",
        "writeQueueSize": 0,
        "udpMaxPayloadSize": 0,
        "udpReadBufferSize": 0,
        "runOnConnect": "",
        "runOnConnectRestart": false,
        "runOnDisconnect": "",
        "authMethod": "",
        "authInternalUsers": (
            json!({
                "user": "",
                "pass": "",
                "ips": (),
                "permissions": (
                    json!({
                        "action": "",
                        "path": ""
                    })
                )
            })
        ),
        "authHTTPAddress": "",
        "authHTTPExclude": (json!({})),
        "authJWTJWKS": "",
        "authJWTJWKSFingerprint": "",
        "authJWTClaimKey": "",
        "authJWTExclude": (json!({})),
        "authJWTInHTTPQuery": false,
        "api": false,
        "apiAddress": "",
        "apiEncryption": false,
        "apiServerKey": "",
        "apiServerCert": "",
        "apiAllowOrigin": "",
        "apiTrustedProxies": (),
        "metrics": false,
        "metricsAddress": "",
        "metricsEncryption": false,
        "metricsServerKey": "",
        "metricsServerCert": "",
        "metricsAllowOrigin": "",
        "metricsTrustedProxies": (),
        "pprof": false,
        "pprofAddress": "",
        "pprofEncryption": false,
        "pprofServerKey": "",
        "pprofServerCert": "",
        "pprofAllowOrigin": "",
        "pprofTrustedProxies": (),
        "playback": false,
        "playbackAddress": "",
        "playbackEncryption": false,
        "playbackServerKey": "",
        "playbackServerCert": "",
        "playbackAllowOrigin": "",
        "playbackTrustedProxies": (),
        "rtsp": false,
        "rtspTransports": (),
        "rtspEncryption": "",
        "rtspAddress": "",
        "rtspsAddress": "",
        "rtpAddress": "",
        "rtcpAddress": "",
        "multicastIPRange": "",
        "multicastRTPPort": 0,
        "multicastRTCPPort": 0,
        "srtpAddress": "",
        "srtcpAddress": "",
        "multicastSRTPPort": 0,
        "multicastSRTCPPort": 0,
        "rtspServerKey": "",
        "rtspServerCert": "",
        "rtspAuthMethods": (),
        "rtmp": false,
        "rtmpAddress": "",
        "rtmpEncryption": "",
        "rtmpsAddress": "",
        "rtmpServerKey": "",
        "rtmpServerCert": "",
        "hls": false,
        "hlsAddress": "",
        "hlsEncryption": false,
        "hlsServerKey": "",
        "hlsServerCert": "",
        "hlsAllowOrigin": "",
        "hlsTrustedProxies": (),
        "hlsAlwaysRemux": false,
        "hlsVariant": "",
        "hlsSegmentCount": 0,
        "hlsSegmentDuration": "",
        "hlsPartDuration": "",
        "hlsSegmentMaxSize": "",
        "hlsDirectory": "",
        "hlsMuxerCloseAfter": "",
        "webrtc": false,
        "webrtcAddress": "",
        "webrtcEncryption": false,
        "webrtcServerKey": "",
        "webrtcServerCert": "",
        "webrtcAllowOrigin": "",
        "webrtcTrustedProxies": (),
        "webrtcLocalUDPAddress": "",
        "webrtcLocalTCPAddress": "",
        "webrtcIPsFromInterfaces": false,
        "webrtcIPsFromInterfacesList": (),
        "webrtcAdditionalHosts": (),
        "webrtcICEServers2": (
            json!({
                "url": "",
                "username": "",
                "password": "",
                "clientOnly": false
            })
        ),
        "webrtcHandshakeTimeout": "",
        "webrtcTrackGatherTimeout": "",
        "webrtcSTUNGatherTimeout": "",
        "srt": false,
        "srtAddress": ""
    });

    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("PATCH").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PATCH \
  --url {{baseUrl}}/v3/config/global/patch \
  --header 'content-type: application/json' \
  --data '{
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    {
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        {
          "action": "",
          "path": ""
        }
      ]
    }
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [
    {}
  ],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [
    {}
  ],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    {
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    }
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
}'
echo '{
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    {
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        {
          "action": "",
          "path": ""
        }
      ]
    }
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [
    {}
  ],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [
    {}
  ],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    {
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    }
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
}' |  \
  http PATCH {{baseUrl}}/v3/config/global/patch \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "logLevel": "",\n  "logDestinations": [],\n  "logFile": "",\n  "sysLogPrefix": "",\n  "readTimeout": "",\n  "writeTimeout": "",\n  "writeQueueSize": 0,\n  "udpMaxPayloadSize": 0,\n  "udpReadBufferSize": 0,\n  "runOnConnect": "",\n  "runOnConnectRestart": false,\n  "runOnDisconnect": "",\n  "authMethod": "",\n  "authInternalUsers": [\n    {\n      "user": "",\n      "pass": "",\n      "ips": [],\n      "permissions": [\n        {\n          "action": "",\n          "path": ""\n        }\n      ]\n    }\n  ],\n  "authHTTPAddress": "",\n  "authHTTPExclude": [\n    {}\n  ],\n  "authJWTJWKS": "",\n  "authJWTJWKSFingerprint": "",\n  "authJWTClaimKey": "",\n  "authJWTExclude": [\n    {}\n  ],\n  "authJWTInHTTPQuery": false,\n  "api": false,\n  "apiAddress": "",\n  "apiEncryption": false,\n  "apiServerKey": "",\n  "apiServerCert": "",\n  "apiAllowOrigin": "",\n  "apiTrustedProxies": [],\n  "metrics": false,\n  "metricsAddress": "",\n  "metricsEncryption": false,\n  "metricsServerKey": "",\n  "metricsServerCert": "",\n  "metricsAllowOrigin": "",\n  "metricsTrustedProxies": [],\n  "pprof": false,\n  "pprofAddress": "",\n  "pprofEncryption": false,\n  "pprofServerKey": "",\n  "pprofServerCert": "",\n  "pprofAllowOrigin": "",\n  "pprofTrustedProxies": [],\n  "playback": false,\n  "playbackAddress": "",\n  "playbackEncryption": false,\n  "playbackServerKey": "",\n  "playbackServerCert": "",\n  "playbackAllowOrigin": "",\n  "playbackTrustedProxies": [],\n  "rtsp": false,\n  "rtspTransports": [],\n  "rtspEncryption": "",\n  "rtspAddress": "",\n  "rtspsAddress": "",\n  "rtpAddress": "",\n  "rtcpAddress": "",\n  "multicastIPRange": "",\n  "multicastRTPPort": 0,\n  "multicastRTCPPort": 0,\n  "srtpAddress": "",\n  "srtcpAddress": "",\n  "multicastSRTPPort": 0,\n  "multicastSRTCPPort": 0,\n  "rtspServerKey": "",\n  "rtspServerCert": "",\n  "rtspAuthMethods": [],\n  "rtmp": false,\n  "rtmpAddress": "",\n  "rtmpEncryption": "",\n  "rtmpsAddress": "",\n  "rtmpServerKey": "",\n  "rtmpServerCert": "",\n  "hls": false,\n  "hlsAddress": "",\n  "hlsEncryption": false,\n  "hlsServerKey": "",\n  "hlsServerCert": "",\n  "hlsAllowOrigin": "",\n  "hlsTrustedProxies": [],\n  "hlsAlwaysRemux": false,\n  "hlsVariant": "",\n  "hlsSegmentCount": 0,\n  "hlsSegmentDuration": "",\n  "hlsPartDuration": "",\n  "hlsSegmentMaxSize": "",\n  "hlsDirectory": "",\n  "hlsMuxerCloseAfter": "",\n  "webrtc": false,\n  "webrtcAddress": "",\n  "webrtcEncryption": false,\n  "webrtcServerKey": "",\n  "webrtcServerCert": "",\n  "webrtcAllowOrigin": "",\n  "webrtcTrustedProxies": [],\n  "webrtcLocalUDPAddress": "",\n  "webrtcLocalTCPAddress": "",\n  "webrtcIPsFromInterfaces": false,\n  "webrtcIPsFromInterfacesList": [],\n  "webrtcAdditionalHosts": [],\n  "webrtcICEServers2": [\n    {\n      "url": "",\n      "username": "",\n      "password": "",\n      "clientOnly": false\n    }\n  ],\n  "webrtcHandshakeTimeout": "",\n  "webrtcTrackGatherTimeout": "",\n  "webrtcSTUNGatherTimeout": "",\n  "srt": false,\n  "srtAddress": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/config/global/patch
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "logLevel": "",
  "logDestinations": [],
  "logFile": "",
  "sysLogPrefix": "",
  "readTimeout": "",
  "writeTimeout": "",
  "writeQueueSize": 0,
  "udpMaxPayloadSize": 0,
  "udpReadBufferSize": 0,
  "runOnConnect": "",
  "runOnConnectRestart": false,
  "runOnDisconnect": "",
  "authMethod": "",
  "authInternalUsers": [
    [
      "user": "",
      "pass": "",
      "ips": [],
      "permissions": [
        [
          "action": "",
          "path": ""
        ]
      ]
    ]
  ],
  "authHTTPAddress": "",
  "authHTTPExclude": [[]],
  "authJWTJWKS": "",
  "authJWTJWKSFingerprint": "",
  "authJWTClaimKey": "",
  "authJWTExclude": [[]],
  "authJWTInHTTPQuery": false,
  "api": false,
  "apiAddress": "",
  "apiEncryption": false,
  "apiServerKey": "",
  "apiServerCert": "",
  "apiAllowOrigin": "",
  "apiTrustedProxies": [],
  "metrics": false,
  "metricsAddress": "",
  "metricsEncryption": false,
  "metricsServerKey": "",
  "metricsServerCert": "",
  "metricsAllowOrigin": "",
  "metricsTrustedProxies": [],
  "pprof": false,
  "pprofAddress": "",
  "pprofEncryption": false,
  "pprofServerKey": "",
  "pprofServerCert": "",
  "pprofAllowOrigin": "",
  "pprofTrustedProxies": [],
  "playback": false,
  "playbackAddress": "",
  "playbackEncryption": false,
  "playbackServerKey": "",
  "playbackServerCert": "",
  "playbackAllowOrigin": "",
  "playbackTrustedProxies": [],
  "rtsp": false,
  "rtspTransports": [],
  "rtspEncryption": "",
  "rtspAddress": "",
  "rtspsAddress": "",
  "rtpAddress": "",
  "rtcpAddress": "",
  "multicastIPRange": "",
  "multicastRTPPort": 0,
  "multicastRTCPPort": 0,
  "srtpAddress": "",
  "srtcpAddress": "",
  "multicastSRTPPort": 0,
  "multicastSRTCPPort": 0,
  "rtspServerKey": "",
  "rtspServerCert": "",
  "rtspAuthMethods": [],
  "rtmp": false,
  "rtmpAddress": "",
  "rtmpEncryption": "",
  "rtmpsAddress": "",
  "rtmpServerKey": "",
  "rtmpServerCert": "",
  "hls": false,
  "hlsAddress": "",
  "hlsEncryption": false,
  "hlsServerKey": "",
  "hlsServerCert": "",
  "hlsAllowOrigin": "",
  "hlsTrustedProxies": [],
  "hlsAlwaysRemux": false,
  "hlsVariant": "",
  "hlsSegmentCount": 0,
  "hlsSegmentDuration": "",
  "hlsPartDuration": "",
  "hlsSegmentMaxSize": "",
  "hlsDirectory": "",
  "hlsMuxerCloseAfter": "",
  "webrtc": false,
  "webrtcAddress": "",
  "webrtcEncryption": false,
  "webrtcServerKey": "",
  "webrtcServerCert": "",
  "webrtcAllowOrigin": "",
  "webrtcTrustedProxies": [],
  "webrtcLocalUDPAddress": "",
  "webrtcLocalTCPAddress": "",
  "webrtcIPsFromInterfaces": false,
  "webrtcIPsFromInterfacesList": [],
  "webrtcAdditionalHosts": [],
  "webrtcICEServers2": [
    [
      "url": "",
      "username": "",
      "password": "",
      "clientOnly": false
    ]
  ],
  "webrtcHandshakeTimeout": "",
  "webrtcTrackGatherTimeout": "",
  "webrtcSTUNGatherTimeout": "",
  "srt": false,
  "srtAddress": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/global/patch")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
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 removes a path configuration.
{{baseUrl}}/v3/config/paths/delete/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/paths/delete/:name");

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

(client/delete "{{baseUrl}}/v3/config/paths/delete/:name")
require "http/client"

url = "{{baseUrl}}/v3/config/paths/delete/:name"

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

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

func main() {

	url := "{{baseUrl}}/v3/config/paths/delete/:name"

	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/v3/config/paths/delete/:name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v3/config/paths/delete/:name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v3/config/paths/delete/:name'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/delete/:name")
  .delete(null)
  .build()

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

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

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

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

const req = unirest('DELETE', '{{baseUrl}}/v3/config/paths/delete/:name');

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}}/v3/config/paths/delete/:name'
};

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

const url = '{{baseUrl}}/v3/config/paths/delete/:name';
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}}/v3/config/paths/delete/:name"]
                                                       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}}/v3/config/paths/delete/:name" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/paths/delete/:name');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/config/paths/delete/:name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/config/paths/delete/:name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/config/paths/delete/:name' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v3/config/paths/delete/:name")

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

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

url = "{{baseUrl}}/v3/config/paths/delete/:name"

response = requests.delete(url)

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

url <- "{{baseUrl}}/v3/config/paths/delete/:name"

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

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

url = URI("{{baseUrl}}/v3/config/paths/delete/:name")

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/v3/config/paths/delete/:name') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/config/paths/delete/:name";

    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}}/v3/config/paths/delete/:name
http DELETE {{baseUrl}}/v3/config/paths/delete/:name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/v3/config/paths/delete/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/paths/delete/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

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

dataTask.resume()
POST replaces all values of a path configuration.
{{baseUrl}}/v3/config/paths/replace/:name
QUERY PARAMS

name
BODY json

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/paths/replace/:name");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");

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

(client/post "{{baseUrl}}/v3/config/paths/replace/:name" {:content-type :json
                                                                          :form-params {:name ""
                                                                                        :source ""
                                                                                        :sourceFingerprint ""
                                                                                        :sourceOnDemand false
                                                                                        :sourceOnDemandStartTimeout ""
                                                                                        :sourceOnDemandCloseAfter ""
                                                                                        :maxReaders 0
                                                                                        :srtReadPassphrase ""
                                                                                        :fallback ""
                                                                                        :useAbsoluteTimestamp false
                                                                                        :record false
                                                                                        :recordPath ""
                                                                                        :recordFormat ""
                                                                                        :recordPartDuration ""
                                                                                        :recordMaxPartSize ""
                                                                                        :recordSegmentDuration ""
                                                                                        :recordDeleteAfter ""
                                                                                        :overridePublisher false
                                                                                        :srtPublishPassphrase ""
                                                                                        :rtspTransport ""
                                                                                        :rtspAnyPort false
                                                                                        :rtspRangeType ""
                                                                                        :rtspRangeStart ""
                                                                                        :rtpSDP ""
                                                                                        :sourceRedirect ""
                                                                                        :rpiCameraCamID 0
                                                                                        :rpiCameraSecondary false
                                                                                        :rpiCameraWidth 0
                                                                                        :rpiCameraHeight 0
                                                                                        :rpiCameraHFlip false
                                                                                        :rpiCameraVFlip false
                                                                                        :rpiCameraBrightness ""
                                                                                        :rpiCameraContrast ""
                                                                                        :rpiCameraSaturation ""
                                                                                        :rpiCameraSharpness ""
                                                                                        :rpiCameraExposure ""
                                                                                        :rpiCameraAWB ""
                                                                                        :rpiCameraAWBGains []
                                                                                        :rpiCameraDenoise ""
                                                                                        :rpiCameraShutter 0
                                                                                        :rpiCameraMetering ""
                                                                                        :rpiCameraGain ""
                                                                                        :rpiCameraEV ""
                                                                                        :rpiCameraROI ""
                                                                                        :rpiCameraHDR false
                                                                                        :rpiCameraTuningFile ""
                                                                                        :rpiCameraMode ""
                                                                                        :rpiCameraFPS ""
                                                                                        :rpiCameraAfMode ""
                                                                                        :rpiCameraAfRange ""
                                                                                        :rpiCameraAfSpeed ""
                                                                                        :rpiCameraLensPosition ""
                                                                                        :rpiCameraAfWindow ""
                                                                                        :rpiCameraFlickerPeriod 0
                                                                                        :rpiCameraTextOverlayEnable false
                                                                                        :rpiCameraTextOverlay ""
                                                                                        :rpiCameraCodec ""
                                                                                        :rpiCameraIDRPeriod 0
                                                                                        :rpiCameraBitrate 0
                                                                                        :rpiCameraHardwareH264Profile ""
                                                                                        :rpiCameraHardwareH264Level ""
                                                                                        :rpiCameraSoftwareH264Profile ""
                                                                                        :rpiCameraSoftwareH264Level ""
                                                                                        :rpiCameraMJPEGQuality 0
                                                                                        :runOnInit ""
                                                                                        :runOnInitRestart false
                                                                                        :runOnDemand ""
                                                                                        :runOnDemandRestart false
                                                                                        :runOnDemandStartTimeout ""
                                                                                        :runOnDemandCloseAfter ""
                                                                                        :runOnUnDemand ""
                                                                                        :runOnReady ""
                                                                                        :runOnReadyRestart false
                                                                                        :runOnNotReady ""
                                                                                        :runOnRead ""
                                                                                        :runOnReadRestart false
                                                                                        :runOnUnread ""
                                                                                        :runOnRecordSegmentCreate ""
                                                                                        :runOnRecordSegmentComplete ""}})
require "http/client"

url = "{{baseUrl}}/v3/config/paths/replace/:name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/replace/:name"),
    Content = new StringContent("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/replace/:name");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/v3/config/paths/replace/:name"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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/v3/config/paths/replace/:name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2096

{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/config/paths/replace/:name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/config/paths/replace/:name"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/replace/:name")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/config/paths/replace/:name")
  .header("content-type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/v3/config/paths/replace/:name');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/config/paths/replace/:name',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/config/paths/replace/:name';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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}}/v3/config/paths/replace/:name',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/replace/:name")
  .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/v3/config/paths/replace/:name',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/v3/config/paths/replace/:name',
  headers: {'content-type': 'application/json'},
  body: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  },
  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}}/v3/config/paths/replace/:name');

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

req.type('json');
req.send({
  name: '',
  source: '',
  sourceFingerprint: '',
  sourceOnDemand: false,
  sourceOnDemandStartTimeout: '',
  sourceOnDemandCloseAfter: '',
  maxReaders: 0,
  srtReadPassphrase: '',
  fallback: '',
  useAbsoluteTimestamp: false,
  record: false,
  recordPath: '',
  recordFormat: '',
  recordPartDuration: '',
  recordMaxPartSize: '',
  recordSegmentDuration: '',
  recordDeleteAfter: '',
  overridePublisher: false,
  srtPublishPassphrase: '',
  rtspTransport: '',
  rtspAnyPort: false,
  rtspRangeType: '',
  rtspRangeStart: '',
  rtpSDP: '',
  sourceRedirect: '',
  rpiCameraCamID: 0,
  rpiCameraSecondary: false,
  rpiCameraWidth: 0,
  rpiCameraHeight: 0,
  rpiCameraHFlip: false,
  rpiCameraVFlip: false,
  rpiCameraBrightness: '',
  rpiCameraContrast: '',
  rpiCameraSaturation: '',
  rpiCameraSharpness: '',
  rpiCameraExposure: '',
  rpiCameraAWB: '',
  rpiCameraAWBGains: [],
  rpiCameraDenoise: '',
  rpiCameraShutter: 0,
  rpiCameraMetering: '',
  rpiCameraGain: '',
  rpiCameraEV: '',
  rpiCameraROI: '',
  rpiCameraHDR: false,
  rpiCameraTuningFile: '',
  rpiCameraMode: '',
  rpiCameraFPS: '',
  rpiCameraAfMode: '',
  rpiCameraAfRange: '',
  rpiCameraAfSpeed: '',
  rpiCameraLensPosition: '',
  rpiCameraAfWindow: '',
  rpiCameraFlickerPeriod: 0,
  rpiCameraTextOverlayEnable: false,
  rpiCameraTextOverlay: '',
  rpiCameraCodec: '',
  rpiCameraIDRPeriod: 0,
  rpiCameraBitrate: 0,
  rpiCameraHardwareH264Profile: '',
  rpiCameraHardwareH264Level: '',
  rpiCameraSoftwareH264Profile: '',
  rpiCameraSoftwareH264Level: '',
  rpiCameraMJPEGQuality: 0,
  runOnInit: '',
  runOnInitRestart: false,
  runOnDemand: '',
  runOnDemandRestart: false,
  runOnDemandStartTimeout: '',
  runOnDemandCloseAfter: '',
  runOnUnDemand: '',
  runOnReady: '',
  runOnReadyRestart: false,
  runOnNotReady: '',
  runOnRead: '',
  runOnReadRestart: false,
  runOnUnread: '',
  runOnRecordSegmentCreate: '',
  runOnRecordSegmentComplete: ''
});

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}}/v3/config/paths/replace/:name',
  headers: {'content-type': 'application/json'},
  data: {
    name: '',
    source: '',
    sourceFingerprint: '',
    sourceOnDemand: false,
    sourceOnDemandStartTimeout: '',
    sourceOnDemandCloseAfter: '',
    maxReaders: 0,
    srtReadPassphrase: '',
    fallback: '',
    useAbsoluteTimestamp: false,
    record: false,
    recordPath: '',
    recordFormat: '',
    recordPartDuration: '',
    recordMaxPartSize: '',
    recordSegmentDuration: '',
    recordDeleteAfter: '',
    overridePublisher: false,
    srtPublishPassphrase: '',
    rtspTransport: '',
    rtspAnyPort: false,
    rtspRangeType: '',
    rtspRangeStart: '',
    rtpSDP: '',
    sourceRedirect: '',
    rpiCameraCamID: 0,
    rpiCameraSecondary: false,
    rpiCameraWidth: 0,
    rpiCameraHeight: 0,
    rpiCameraHFlip: false,
    rpiCameraVFlip: false,
    rpiCameraBrightness: '',
    rpiCameraContrast: '',
    rpiCameraSaturation: '',
    rpiCameraSharpness: '',
    rpiCameraExposure: '',
    rpiCameraAWB: '',
    rpiCameraAWBGains: [],
    rpiCameraDenoise: '',
    rpiCameraShutter: 0,
    rpiCameraMetering: '',
    rpiCameraGain: '',
    rpiCameraEV: '',
    rpiCameraROI: '',
    rpiCameraHDR: false,
    rpiCameraTuningFile: '',
    rpiCameraMode: '',
    rpiCameraFPS: '',
    rpiCameraAfMode: '',
    rpiCameraAfRange: '',
    rpiCameraAfSpeed: '',
    rpiCameraLensPosition: '',
    rpiCameraAfWindow: '',
    rpiCameraFlickerPeriod: 0,
    rpiCameraTextOverlayEnable: false,
    rpiCameraTextOverlay: '',
    rpiCameraCodec: '',
    rpiCameraIDRPeriod: 0,
    rpiCameraBitrate: 0,
    rpiCameraHardwareH264Profile: '',
    rpiCameraHardwareH264Level: '',
    rpiCameraSoftwareH264Profile: '',
    rpiCameraSoftwareH264Level: '',
    rpiCameraMJPEGQuality: 0,
    runOnInit: '',
    runOnInitRestart: false,
    runOnDemand: '',
    runOnDemandRestart: false,
    runOnDemandStartTimeout: '',
    runOnDemandCloseAfter: '',
    runOnUnDemand: '',
    runOnReady: '',
    runOnReadyRestart: false,
    runOnNotReady: '',
    runOnRead: '',
    runOnReadRestart: false,
    runOnUnread: '',
    runOnRecordSegmentCreate: '',
    runOnRecordSegmentComplete: ''
  }
};

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

const url = '{{baseUrl}}/v3/config/paths/replace/:name';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"name":"","source":"","sourceFingerprint":"","sourceOnDemand":false,"sourceOnDemandStartTimeout":"","sourceOnDemandCloseAfter":"","maxReaders":0,"srtReadPassphrase":"","fallback":"","useAbsoluteTimestamp":false,"record":false,"recordPath":"","recordFormat":"","recordPartDuration":"","recordMaxPartSize":"","recordSegmentDuration":"","recordDeleteAfter":"","overridePublisher":false,"srtPublishPassphrase":"","rtspTransport":"","rtspAnyPort":false,"rtspRangeType":"","rtspRangeStart":"","rtpSDP":"","sourceRedirect":"","rpiCameraCamID":0,"rpiCameraSecondary":false,"rpiCameraWidth":0,"rpiCameraHeight":0,"rpiCameraHFlip":false,"rpiCameraVFlip":false,"rpiCameraBrightness":"","rpiCameraContrast":"","rpiCameraSaturation":"","rpiCameraSharpness":"","rpiCameraExposure":"","rpiCameraAWB":"","rpiCameraAWBGains":[],"rpiCameraDenoise":"","rpiCameraShutter":0,"rpiCameraMetering":"","rpiCameraGain":"","rpiCameraEV":"","rpiCameraROI":"","rpiCameraHDR":false,"rpiCameraTuningFile":"","rpiCameraMode":"","rpiCameraFPS":"","rpiCameraAfMode":"","rpiCameraAfRange":"","rpiCameraAfSpeed":"","rpiCameraLensPosition":"","rpiCameraAfWindow":"","rpiCameraFlickerPeriod":0,"rpiCameraTextOverlayEnable":false,"rpiCameraTextOverlay":"","rpiCameraCodec":"","rpiCameraIDRPeriod":0,"rpiCameraBitrate":0,"rpiCameraHardwareH264Profile":"","rpiCameraHardwareH264Level":"","rpiCameraSoftwareH264Profile":"","rpiCameraSoftwareH264Level":"","rpiCameraMJPEGQuality":0,"runOnInit":"","runOnInitRestart":false,"runOnDemand":"","runOnDemandRestart":false,"runOnDemandStartTimeout":"","runOnDemandCloseAfter":"","runOnUnDemand":"","runOnReady":"","runOnReadyRestart":false,"runOnNotReady":"","runOnRead":"","runOnReadRestart":false,"runOnUnread":"","runOnRecordSegmentCreate":"","runOnRecordSegmentComplete":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"name": @"",
                              @"source": @"",
                              @"sourceFingerprint": @"",
                              @"sourceOnDemand": @NO,
                              @"sourceOnDemandStartTimeout": @"",
                              @"sourceOnDemandCloseAfter": @"",
                              @"maxReaders": @0,
                              @"srtReadPassphrase": @"",
                              @"fallback": @"",
                              @"useAbsoluteTimestamp": @NO,
                              @"record": @NO,
                              @"recordPath": @"",
                              @"recordFormat": @"",
                              @"recordPartDuration": @"",
                              @"recordMaxPartSize": @"",
                              @"recordSegmentDuration": @"",
                              @"recordDeleteAfter": @"",
                              @"overridePublisher": @NO,
                              @"srtPublishPassphrase": @"",
                              @"rtspTransport": @"",
                              @"rtspAnyPort": @NO,
                              @"rtspRangeType": @"",
                              @"rtspRangeStart": @"",
                              @"rtpSDP": @"",
                              @"sourceRedirect": @"",
                              @"rpiCameraCamID": @0,
                              @"rpiCameraSecondary": @NO,
                              @"rpiCameraWidth": @0,
                              @"rpiCameraHeight": @0,
                              @"rpiCameraHFlip": @NO,
                              @"rpiCameraVFlip": @NO,
                              @"rpiCameraBrightness": @"",
                              @"rpiCameraContrast": @"",
                              @"rpiCameraSaturation": @"",
                              @"rpiCameraSharpness": @"",
                              @"rpiCameraExposure": @"",
                              @"rpiCameraAWB": @"",
                              @"rpiCameraAWBGains": @[  ],
                              @"rpiCameraDenoise": @"",
                              @"rpiCameraShutter": @0,
                              @"rpiCameraMetering": @"",
                              @"rpiCameraGain": @"",
                              @"rpiCameraEV": @"",
                              @"rpiCameraROI": @"",
                              @"rpiCameraHDR": @NO,
                              @"rpiCameraTuningFile": @"",
                              @"rpiCameraMode": @"",
                              @"rpiCameraFPS": @"",
                              @"rpiCameraAfMode": @"",
                              @"rpiCameraAfRange": @"",
                              @"rpiCameraAfSpeed": @"",
                              @"rpiCameraLensPosition": @"",
                              @"rpiCameraAfWindow": @"",
                              @"rpiCameraFlickerPeriod": @0,
                              @"rpiCameraTextOverlayEnable": @NO,
                              @"rpiCameraTextOverlay": @"",
                              @"rpiCameraCodec": @"",
                              @"rpiCameraIDRPeriod": @0,
                              @"rpiCameraBitrate": @0,
                              @"rpiCameraHardwareH264Profile": @"",
                              @"rpiCameraHardwareH264Level": @"",
                              @"rpiCameraSoftwareH264Profile": @"",
                              @"rpiCameraSoftwareH264Level": @"",
                              @"rpiCameraMJPEGQuality": @0,
                              @"runOnInit": @"",
                              @"runOnInitRestart": @NO,
                              @"runOnDemand": @"",
                              @"runOnDemandRestart": @NO,
                              @"runOnDemandStartTimeout": @"",
                              @"runOnDemandCloseAfter": @"",
                              @"runOnUnDemand": @"",
                              @"runOnReady": @"",
                              @"runOnReadyRestart": @NO,
                              @"runOnNotReady": @"",
                              @"runOnRead": @"",
                              @"runOnReadRestart": @NO,
                              @"runOnUnread": @"",
                              @"runOnRecordSegmentCreate": @"",
                              @"runOnRecordSegmentComplete": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/v3/config/paths/replace/:name"]
                                                       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}}/v3/config/paths/replace/:name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/config/paths/replace/:name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '',
    'source' => '',
    'sourceFingerprint' => '',
    'sourceOnDemand' => null,
    'sourceOnDemandStartTimeout' => '',
    'sourceOnDemandCloseAfter' => '',
    'maxReaders' => 0,
    'srtReadPassphrase' => '',
    'fallback' => '',
    'useAbsoluteTimestamp' => null,
    'record' => null,
    'recordPath' => '',
    'recordFormat' => '',
    'recordPartDuration' => '',
    'recordMaxPartSize' => '',
    'recordSegmentDuration' => '',
    'recordDeleteAfter' => '',
    'overridePublisher' => null,
    'srtPublishPassphrase' => '',
    'rtspTransport' => '',
    'rtspAnyPort' => null,
    'rtspRangeType' => '',
    'rtspRangeStart' => '',
    'rtpSDP' => '',
    'sourceRedirect' => '',
    'rpiCameraCamID' => 0,
    'rpiCameraSecondary' => null,
    'rpiCameraWidth' => 0,
    'rpiCameraHeight' => 0,
    'rpiCameraHFlip' => null,
    'rpiCameraVFlip' => null,
    'rpiCameraBrightness' => '',
    'rpiCameraContrast' => '',
    'rpiCameraSaturation' => '',
    'rpiCameraSharpness' => '',
    'rpiCameraExposure' => '',
    'rpiCameraAWB' => '',
    'rpiCameraAWBGains' => [
        
    ],
    'rpiCameraDenoise' => '',
    'rpiCameraShutter' => 0,
    'rpiCameraMetering' => '',
    'rpiCameraGain' => '',
    'rpiCameraEV' => '',
    'rpiCameraROI' => '',
    'rpiCameraHDR' => null,
    'rpiCameraTuningFile' => '',
    'rpiCameraMode' => '',
    'rpiCameraFPS' => '',
    'rpiCameraAfMode' => '',
    'rpiCameraAfRange' => '',
    'rpiCameraAfSpeed' => '',
    'rpiCameraLensPosition' => '',
    'rpiCameraAfWindow' => '',
    'rpiCameraFlickerPeriod' => 0,
    'rpiCameraTextOverlayEnable' => null,
    'rpiCameraTextOverlay' => '',
    'rpiCameraCodec' => '',
    'rpiCameraIDRPeriod' => 0,
    'rpiCameraBitrate' => 0,
    'rpiCameraHardwareH264Profile' => '',
    'rpiCameraHardwareH264Level' => '',
    'rpiCameraSoftwareH264Profile' => '',
    'rpiCameraSoftwareH264Level' => '',
    'rpiCameraMJPEGQuality' => 0,
    'runOnInit' => '',
    'runOnInitRestart' => null,
    'runOnDemand' => '',
    'runOnDemandRestart' => null,
    'runOnDemandStartTimeout' => '',
    'runOnDemandCloseAfter' => '',
    'runOnUnDemand' => '',
    'runOnReady' => '',
    'runOnReadyRestart' => null,
    'runOnNotReady' => '',
    'runOnRead' => '',
    'runOnReadRestart' => null,
    'runOnUnread' => '',
    'runOnRecordSegmentCreate' => '',
    'runOnRecordSegmentComplete' => ''
  ]),
  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}}/v3/config/paths/replace/:name', [
  'body' => '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/paths/replace/:name');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'name' => '',
  'source' => '',
  'sourceFingerprint' => '',
  'sourceOnDemand' => null,
  'sourceOnDemandStartTimeout' => '',
  'sourceOnDemandCloseAfter' => '',
  'maxReaders' => 0,
  'srtReadPassphrase' => '',
  'fallback' => '',
  'useAbsoluteTimestamp' => null,
  'record' => null,
  'recordPath' => '',
  'recordFormat' => '',
  'recordPartDuration' => '',
  'recordMaxPartSize' => '',
  'recordSegmentDuration' => '',
  'recordDeleteAfter' => '',
  'overridePublisher' => null,
  'srtPublishPassphrase' => '',
  'rtspTransport' => '',
  'rtspAnyPort' => null,
  'rtspRangeType' => '',
  'rtspRangeStart' => '',
  'rtpSDP' => '',
  'sourceRedirect' => '',
  'rpiCameraCamID' => 0,
  'rpiCameraSecondary' => null,
  'rpiCameraWidth' => 0,
  'rpiCameraHeight' => 0,
  'rpiCameraHFlip' => null,
  'rpiCameraVFlip' => null,
  'rpiCameraBrightness' => '',
  'rpiCameraContrast' => '',
  'rpiCameraSaturation' => '',
  'rpiCameraSharpness' => '',
  'rpiCameraExposure' => '',
  'rpiCameraAWB' => '',
  'rpiCameraAWBGains' => [
    
  ],
  'rpiCameraDenoise' => '',
  'rpiCameraShutter' => 0,
  'rpiCameraMetering' => '',
  'rpiCameraGain' => '',
  'rpiCameraEV' => '',
  'rpiCameraROI' => '',
  'rpiCameraHDR' => null,
  'rpiCameraTuningFile' => '',
  'rpiCameraMode' => '',
  'rpiCameraFPS' => '',
  'rpiCameraAfMode' => '',
  'rpiCameraAfRange' => '',
  'rpiCameraAfSpeed' => '',
  'rpiCameraLensPosition' => '',
  'rpiCameraAfWindow' => '',
  'rpiCameraFlickerPeriod' => 0,
  'rpiCameraTextOverlayEnable' => null,
  'rpiCameraTextOverlay' => '',
  'rpiCameraCodec' => '',
  'rpiCameraIDRPeriod' => 0,
  'rpiCameraBitrate' => 0,
  'rpiCameraHardwareH264Profile' => '',
  'rpiCameraHardwareH264Level' => '',
  'rpiCameraSoftwareH264Profile' => '',
  'rpiCameraSoftwareH264Level' => '',
  'rpiCameraMJPEGQuality' => 0,
  'runOnInit' => '',
  'runOnInitRestart' => null,
  'runOnDemand' => '',
  'runOnDemandRestart' => null,
  'runOnDemandStartTimeout' => '',
  'runOnDemandCloseAfter' => '',
  'runOnUnDemand' => '',
  'runOnReady' => '',
  'runOnReadyRestart' => null,
  'runOnNotReady' => '',
  'runOnRead' => '',
  'runOnReadRestart' => null,
  'runOnUnread' => '',
  'runOnRecordSegmentCreate' => '',
  'runOnRecordSegmentComplete' => ''
]));
$request->setRequestUrl('{{baseUrl}}/v3/config/paths/replace/:name');
$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}}/v3/config/paths/replace/:name' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/config/paths/replace/:name' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
import http.client

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

payload = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"

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

conn.request("POST", "/baseUrl/v3/config/paths/replace/:name", payload, headers)

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

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

url = "{{baseUrl}}/v3/config/paths/replace/:name"

payload = {
    "name": "",
    "source": "",
    "sourceFingerprint": "",
    "sourceOnDemand": False,
    "sourceOnDemandStartTimeout": "",
    "sourceOnDemandCloseAfter": "",
    "maxReaders": 0,
    "srtReadPassphrase": "",
    "fallback": "",
    "useAbsoluteTimestamp": False,
    "record": False,
    "recordPath": "",
    "recordFormat": "",
    "recordPartDuration": "",
    "recordMaxPartSize": "",
    "recordSegmentDuration": "",
    "recordDeleteAfter": "",
    "overridePublisher": False,
    "srtPublishPassphrase": "",
    "rtspTransport": "",
    "rtspAnyPort": False,
    "rtspRangeType": "",
    "rtspRangeStart": "",
    "rtpSDP": "",
    "sourceRedirect": "",
    "rpiCameraCamID": 0,
    "rpiCameraSecondary": False,
    "rpiCameraWidth": 0,
    "rpiCameraHeight": 0,
    "rpiCameraHFlip": False,
    "rpiCameraVFlip": False,
    "rpiCameraBrightness": "",
    "rpiCameraContrast": "",
    "rpiCameraSaturation": "",
    "rpiCameraSharpness": "",
    "rpiCameraExposure": "",
    "rpiCameraAWB": "",
    "rpiCameraAWBGains": [],
    "rpiCameraDenoise": "",
    "rpiCameraShutter": 0,
    "rpiCameraMetering": "",
    "rpiCameraGain": "",
    "rpiCameraEV": "",
    "rpiCameraROI": "",
    "rpiCameraHDR": False,
    "rpiCameraTuningFile": "",
    "rpiCameraMode": "",
    "rpiCameraFPS": "",
    "rpiCameraAfMode": "",
    "rpiCameraAfRange": "",
    "rpiCameraAfSpeed": "",
    "rpiCameraLensPosition": "",
    "rpiCameraAfWindow": "",
    "rpiCameraFlickerPeriod": 0,
    "rpiCameraTextOverlayEnable": False,
    "rpiCameraTextOverlay": "",
    "rpiCameraCodec": "",
    "rpiCameraIDRPeriod": 0,
    "rpiCameraBitrate": 0,
    "rpiCameraHardwareH264Profile": "",
    "rpiCameraHardwareH264Level": "",
    "rpiCameraSoftwareH264Profile": "",
    "rpiCameraSoftwareH264Level": "",
    "rpiCameraMJPEGQuality": 0,
    "runOnInit": "",
    "runOnInitRestart": False,
    "runOnDemand": "",
    "runOnDemandRestart": False,
    "runOnDemandStartTimeout": "",
    "runOnDemandCloseAfter": "",
    "runOnUnDemand": "",
    "runOnReady": "",
    "runOnReadyRestart": False,
    "runOnNotReady": "",
    "runOnRead": "",
    "runOnReadRestart": False,
    "runOnUnread": "",
    "runOnRecordSegmentCreate": "",
    "runOnRecordSegmentComplete": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/v3/config/paths/replace/:name"

payload <- "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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}}/v3/config/paths/replace/:name")

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

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\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/v3/config/paths/replace/:name') do |req|
  req.body = "{\n  \"name\": \"\",\n  \"source\": \"\",\n  \"sourceFingerprint\": \"\",\n  \"sourceOnDemand\": false,\n  \"sourceOnDemandStartTimeout\": \"\",\n  \"sourceOnDemandCloseAfter\": \"\",\n  \"maxReaders\": 0,\n  \"srtReadPassphrase\": \"\",\n  \"fallback\": \"\",\n  \"useAbsoluteTimestamp\": false,\n  \"record\": false,\n  \"recordPath\": \"\",\n  \"recordFormat\": \"\",\n  \"recordPartDuration\": \"\",\n  \"recordMaxPartSize\": \"\",\n  \"recordSegmentDuration\": \"\",\n  \"recordDeleteAfter\": \"\",\n  \"overridePublisher\": false,\n  \"srtPublishPassphrase\": \"\",\n  \"rtspTransport\": \"\",\n  \"rtspAnyPort\": false,\n  \"rtspRangeType\": \"\",\n  \"rtspRangeStart\": \"\",\n  \"rtpSDP\": \"\",\n  \"sourceRedirect\": \"\",\n  \"rpiCameraCamID\": 0,\n  \"rpiCameraSecondary\": false,\n  \"rpiCameraWidth\": 0,\n  \"rpiCameraHeight\": 0,\n  \"rpiCameraHFlip\": false,\n  \"rpiCameraVFlip\": false,\n  \"rpiCameraBrightness\": \"\",\n  \"rpiCameraContrast\": \"\",\n  \"rpiCameraSaturation\": \"\",\n  \"rpiCameraSharpness\": \"\",\n  \"rpiCameraExposure\": \"\",\n  \"rpiCameraAWB\": \"\",\n  \"rpiCameraAWBGains\": [],\n  \"rpiCameraDenoise\": \"\",\n  \"rpiCameraShutter\": 0,\n  \"rpiCameraMetering\": \"\",\n  \"rpiCameraGain\": \"\",\n  \"rpiCameraEV\": \"\",\n  \"rpiCameraROI\": \"\",\n  \"rpiCameraHDR\": false,\n  \"rpiCameraTuningFile\": \"\",\n  \"rpiCameraMode\": \"\",\n  \"rpiCameraFPS\": \"\",\n  \"rpiCameraAfMode\": \"\",\n  \"rpiCameraAfRange\": \"\",\n  \"rpiCameraAfSpeed\": \"\",\n  \"rpiCameraLensPosition\": \"\",\n  \"rpiCameraAfWindow\": \"\",\n  \"rpiCameraFlickerPeriod\": 0,\n  \"rpiCameraTextOverlayEnable\": false,\n  \"rpiCameraTextOverlay\": \"\",\n  \"rpiCameraCodec\": \"\",\n  \"rpiCameraIDRPeriod\": 0,\n  \"rpiCameraBitrate\": 0,\n  \"rpiCameraHardwareH264Profile\": \"\",\n  \"rpiCameraHardwareH264Level\": \"\",\n  \"rpiCameraSoftwareH264Profile\": \"\",\n  \"rpiCameraSoftwareH264Level\": \"\",\n  \"rpiCameraMJPEGQuality\": 0,\n  \"runOnInit\": \"\",\n  \"runOnInitRestart\": false,\n  \"runOnDemand\": \"\",\n  \"runOnDemandRestart\": false,\n  \"runOnDemandStartTimeout\": \"\",\n  \"runOnDemandCloseAfter\": \"\",\n  \"runOnUnDemand\": \"\",\n  \"runOnReady\": \"\",\n  \"runOnReadyRestart\": false,\n  \"runOnNotReady\": \"\",\n  \"runOnRead\": \"\",\n  \"runOnReadRestart\": false,\n  \"runOnUnread\": \"\",\n  \"runOnRecordSegmentCreate\": \"\",\n  \"runOnRecordSegmentComplete\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/config/paths/replace/:name";

    let payload = json!({
        "name": "",
        "source": "",
        "sourceFingerprint": "",
        "sourceOnDemand": false,
        "sourceOnDemandStartTimeout": "",
        "sourceOnDemandCloseAfter": "",
        "maxReaders": 0,
        "srtReadPassphrase": "",
        "fallback": "",
        "useAbsoluteTimestamp": false,
        "record": false,
        "recordPath": "",
        "recordFormat": "",
        "recordPartDuration": "",
        "recordMaxPartSize": "",
        "recordSegmentDuration": "",
        "recordDeleteAfter": "",
        "overridePublisher": false,
        "srtPublishPassphrase": "",
        "rtspTransport": "",
        "rtspAnyPort": false,
        "rtspRangeType": "",
        "rtspRangeStart": "",
        "rtpSDP": "",
        "sourceRedirect": "",
        "rpiCameraCamID": 0,
        "rpiCameraSecondary": false,
        "rpiCameraWidth": 0,
        "rpiCameraHeight": 0,
        "rpiCameraHFlip": false,
        "rpiCameraVFlip": false,
        "rpiCameraBrightness": "",
        "rpiCameraContrast": "",
        "rpiCameraSaturation": "",
        "rpiCameraSharpness": "",
        "rpiCameraExposure": "",
        "rpiCameraAWB": "",
        "rpiCameraAWBGains": (),
        "rpiCameraDenoise": "",
        "rpiCameraShutter": 0,
        "rpiCameraMetering": "",
        "rpiCameraGain": "",
        "rpiCameraEV": "",
        "rpiCameraROI": "",
        "rpiCameraHDR": false,
        "rpiCameraTuningFile": "",
        "rpiCameraMode": "",
        "rpiCameraFPS": "",
        "rpiCameraAfMode": "",
        "rpiCameraAfRange": "",
        "rpiCameraAfSpeed": "",
        "rpiCameraLensPosition": "",
        "rpiCameraAfWindow": "",
        "rpiCameraFlickerPeriod": 0,
        "rpiCameraTextOverlayEnable": false,
        "rpiCameraTextOverlay": "",
        "rpiCameraCodec": "",
        "rpiCameraIDRPeriod": 0,
        "rpiCameraBitrate": 0,
        "rpiCameraHardwareH264Profile": "",
        "rpiCameraHardwareH264Level": "",
        "rpiCameraSoftwareH264Profile": "",
        "rpiCameraSoftwareH264Level": "",
        "rpiCameraMJPEGQuality": 0,
        "runOnInit": "",
        "runOnInitRestart": false,
        "runOnDemand": "",
        "runOnDemandRestart": false,
        "runOnDemandStartTimeout": "",
        "runOnDemandCloseAfter": "",
        "runOnUnDemand": "",
        "runOnReady": "",
        "runOnReadyRestart": false,
        "runOnNotReady": "",
        "runOnRead": "",
        "runOnReadRestart": false,
        "runOnUnread": "",
        "runOnRecordSegmentCreate": "",
        "runOnRecordSegmentComplete": ""
    });

    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}}/v3/config/paths/replace/:name \
  --header 'content-type: application/json' \
  --data '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}'
echo '{
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
}' |  \
  http POST {{baseUrl}}/v3/config/paths/replace/:name \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "name": "",\n  "source": "",\n  "sourceFingerprint": "",\n  "sourceOnDemand": false,\n  "sourceOnDemandStartTimeout": "",\n  "sourceOnDemandCloseAfter": "",\n  "maxReaders": 0,\n  "srtReadPassphrase": "",\n  "fallback": "",\n  "useAbsoluteTimestamp": false,\n  "record": false,\n  "recordPath": "",\n  "recordFormat": "",\n  "recordPartDuration": "",\n  "recordMaxPartSize": "",\n  "recordSegmentDuration": "",\n  "recordDeleteAfter": "",\n  "overridePublisher": false,\n  "srtPublishPassphrase": "",\n  "rtspTransport": "",\n  "rtspAnyPort": false,\n  "rtspRangeType": "",\n  "rtspRangeStart": "",\n  "rtpSDP": "",\n  "sourceRedirect": "",\n  "rpiCameraCamID": 0,\n  "rpiCameraSecondary": false,\n  "rpiCameraWidth": 0,\n  "rpiCameraHeight": 0,\n  "rpiCameraHFlip": false,\n  "rpiCameraVFlip": false,\n  "rpiCameraBrightness": "",\n  "rpiCameraContrast": "",\n  "rpiCameraSaturation": "",\n  "rpiCameraSharpness": "",\n  "rpiCameraExposure": "",\n  "rpiCameraAWB": "",\n  "rpiCameraAWBGains": [],\n  "rpiCameraDenoise": "",\n  "rpiCameraShutter": 0,\n  "rpiCameraMetering": "",\n  "rpiCameraGain": "",\n  "rpiCameraEV": "",\n  "rpiCameraROI": "",\n  "rpiCameraHDR": false,\n  "rpiCameraTuningFile": "",\n  "rpiCameraMode": "",\n  "rpiCameraFPS": "",\n  "rpiCameraAfMode": "",\n  "rpiCameraAfRange": "",\n  "rpiCameraAfSpeed": "",\n  "rpiCameraLensPosition": "",\n  "rpiCameraAfWindow": "",\n  "rpiCameraFlickerPeriod": 0,\n  "rpiCameraTextOverlayEnable": false,\n  "rpiCameraTextOverlay": "",\n  "rpiCameraCodec": "",\n  "rpiCameraIDRPeriod": 0,\n  "rpiCameraBitrate": 0,\n  "rpiCameraHardwareH264Profile": "",\n  "rpiCameraHardwareH264Level": "",\n  "rpiCameraSoftwareH264Profile": "",\n  "rpiCameraSoftwareH264Level": "",\n  "rpiCameraMJPEGQuality": 0,\n  "runOnInit": "",\n  "runOnInitRestart": false,\n  "runOnDemand": "",\n  "runOnDemandRestart": false,\n  "runOnDemandStartTimeout": "",\n  "runOnDemandCloseAfter": "",\n  "runOnUnDemand": "",\n  "runOnReady": "",\n  "runOnReadyRestart": false,\n  "runOnNotReady": "",\n  "runOnRead": "",\n  "runOnReadRestart": false,\n  "runOnUnread": "",\n  "runOnRecordSegmentCreate": "",\n  "runOnRecordSegmentComplete": ""\n}' \
  --output-document \
  - {{baseUrl}}/v3/config/paths/replace/:name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "name": "",
  "source": "",
  "sourceFingerprint": "",
  "sourceOnDemand": false,
  "sourceOnDemandStartTimeout": "",
  "sourceOnDemandCloseAfter": "",
  "maxReaders": 0,
  "srtReadPassphrase": "",
  "fallback": "",
  "useAbsoluteTimestamp": false,
  "record": false,
  "recordPath": "",
  "recordFormat": "",
  "recordPartDuration": "",
  "recordMaxPartSize": "",
  "recordSegmentDuration": "",
  "recordDeleteAfter": "",
  "overridePublisher": false,
  "srtPublishPassphrase": "",
  "rtspTransport": "",
  "rtspAnyPort": false,
  "rtspRangeType": "",
  "rtspRangeStart": "",
  "rtpSDP": "",
  "sourceRedirect": "",
  "rpiCameraCamID": 0,
  "rpiCameraSecondary": false,
  "rpiCameraWidth": 0,
  "rpiCameraHeight": 0,
  "rpiCameraHFlip": false,
  "rpiCameraVFlip": false,
  "rpiCameraBrightness": "",
  "rpiCameraContrast": "",
  "rpiCameraSaturation": "",
  "rpiCameraSharpness": "",
  "rpiCameraExposure": "",
  "rpiCameraAWB": "",
  "rpiCameraAWBGains": [],
  "rpiCameraDenoise": "",
  "rpiCameraShutter": 0,
  "rpiCameraMetering": "",
  "rpiCameraGain": "",
  "rpiCameraEV": "",
  "rpiCameraROI": "",
  "rpiCameraHDR": false,
  "rpiCameraTuningFile": "",
  "rpiCameraMode": "",
  "rpiCameraFPS": "",
  "rpiCameraAfMode": "",
  "rpiCameraAfRange": "",
  "rpiCameraAfSpeed": "",
  "rpiCameraLensPosition": "",
  "rpiCameraAfWindow": "",
  "rpiCameraFlickerPeriod": 0,
  "rpiCameraTextOverlayEnable": false,
  "rpiCameraTextOverlay": "",
  "rpiCameraCodec": "",
  "rpiCameraIDRPeriod": 0,
  "rpiCameraBitrate": 0,
  "rpiCameraHardwareH264Profile": "",
  "rpiCameraHardwareH264Level": "",
  "rpiCameraSoftwareH264Profile": "",
  "rpiCameraSoftwareH264Level": "",
  "rpiCameraMJPEGQuality": 0,
  "runOnInit": "",
  "runOnInitRestart": false,
  "runOnDemand": "",
  "runOnDemandRestart": false,
  "runOnDemandStartTimeout": "",
  "runOnDemandCloseAfter": "",
  "runOnUnDemand": "",
  "runOnReady": "",
  "runOnReadyRestart": false,
  "runOnNotReady": "",
  "runOnRead": "",
  "runOnReadRestart": false,
  "runOnUnread": "",
  "runOnRecordSegmentCreate": "",
  "runOnRecordSegmentComplete": ""
] as [String : Any]

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

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

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

dataTask.resume()
GET returns a path configuration.
{{baseUrl}}/v3/config/paths/get/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/paths/get/:name");

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

(client/get "{{baseUrl}}/v3/config/paths/get/:name")
require "http/client"

url = "{{baseUrl}}/v3/config/paths/get/:name"

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

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

func main() {

	url := "{{baseUrl}}/v3/config/paths/get/:name"

	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/v3/config/paths/get/:name HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/config/paths/get/:name'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/get/:name")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/config/paths/get/:name');

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}}/v3/config/paths/get/:name'};

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

const url = '{{baseUrl}}/v3/config/paths/get/:name';
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}}/v3/config/paths/get/:name"]
                                                       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}}/v3/config/paths/get/:name" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/paths/get/:name');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/config/paths/get/:name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/config/paths/get/:name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/config/paths/get/:name' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/v3/config/paths/get/:name")

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

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

url = "{{baseUrl}}/v3/config/paths/get/:name"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/config/paths/get/:name"

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

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

url = URI("{{baseUrl}}/v3/config/paths/get/:name")

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/v3/config/paths/get/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/config/paths/get/:name";

    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}}/v3/config/paths/get/:name
http GET {{baseUrl}}/v3/config/paths/get/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/config/paths/get/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/paths/get/:name")! 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 returns all path configurations.
{{baseUrl}}/v3/config/paths/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/paths/list");

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

(client/get "{{baseUrl}}/v3/config/paths/list")
require "http/client"

url = "{{baseUrl}}/v3/config/paths/list"

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

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

func main() {

	url := "{{baseUrl}}/v3/config/paths/list"

	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/v3/config/paths/list HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/config/paths/list'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/config/paths/list")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/config/paths/list');

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}}/v3/config/paths/list'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/paths/list');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v3/config/paths/list")

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

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

url = "{{baseUrl}}/v3/config/paths/list"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/config/paths/list"

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

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

url = URI("{{baseUrl}}/v3/config/paths/list")

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/v3/config/paths/list') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/paths/list")! 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 returns the default path configuration.
{{baseUrl}}/v3/config/pathdefaults/get
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/pathdefaults/get");

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

(client/get "{{baseUrl}}/v3/config/pathdefaults/get")
require "http/client"

url = "{{baseUrl}}/v3/config/pathdefaults/get"

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

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

func main() {

	url := "{{baseUrl}}/v3/config/pathdefaults/get"

	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/v3/config/pathdefaults/get HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/config/pathdefaults/get'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/config/pathdefaults/get');

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}}/v3/config/pathdefaults/get'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/pathdefaults/get');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v3/config/pathdefaults/get")

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

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

url = "{{baseUrl}}/v3/config/pathdefaults/get"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/config/pathdefaults/get"

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

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

url = URI("{{baseUrl}}/v3/config/pathdefaults/get")

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/v3/config/pathdefaults/get') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/pathdefaults/get")! 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 returns the global configuration.
{{baseUrl}}/v3/config/global/get
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/config/global/get");

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

(client/get "{{baseUrl}}/v3/config/global/get")
require "http/client"

url = "{{baseUrl}}/v3/config/global/get"

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

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

func main() {

	url := "{{baseUrl}}/v3/config/global/get"

	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/v3/config/global/get HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/config/global/get'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/config/global/get');

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}}/v3/config/global/get'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/config/global/get');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v3/config/global/get")

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

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

url = "{{baseUrl}}/v3/config/global/get"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/config/global/get"

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

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

url = URI("{{baseUrl}}/v3/config/global/get")

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/v3/config/global/get') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/config/global/get")! 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 returns informations about the instance.
{{baseUrl}}/v3/info
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/v3/info")
require "http/client"

url = "{{baseUrl}}/v3/info"

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

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

func main() {

	url := "{{baseUrl}}/v3/info"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/info")

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

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

url = "{{baseUrl}}/v3/info"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/info"

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

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

url = URI("{{baseUrl}}/v3/info")

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

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/info")! 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 returns a HLS muxer.
{{baseUrl}}/v3/hlsmuxers/get/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/hlsmuxers/get/:name");

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

(client/get "{{baseUrl}}/v3/hlsmuxers/get/:name")
require "http/client"

url = "{{baseUrl}}/v3/hlsmuxers/get/:name"

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

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

func main() {

	url := "{{baseUrl}}/v3/hlsmuxers/get/:name"

	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/v3/hlsmuxers/get/:name HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/hlsmuxers/get/:name'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/hlsmuxers/get/:name")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/hlsmuxers/get/:name');

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}}/v3/hlsmuxers/get/:name'};

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

const url = '{{baseUrl}}/v3/hlsmuxers/get/:name';
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}}/v3/hlsmuxers/get/:name"]
                                                       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}}/v3/hlsmuxers/get/:name" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/hlsmuxers/get/:name');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v3/hlsmuxers/get/:name")

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

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

url = "{{baseUrl}}/v3/hlsmuxers/get/:name"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/hlsmuxers/get/:name"

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

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

url = URI("{{baseUrl}}/v3/hlsmuxers/get/:name")

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/v3/hlsmuxers/get/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v3/hlsmuxers/get/:name
http GET {{baseUrl}}/v3/hlsmuxers/get/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/hlsmuxers/get/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/hlsmuxers/get/:name")! 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 returns all HLS muxers.
{{baseUrl}}/v3/hlsmuxers/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/hlsmuxers/list");

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

(client/get "{{baseUrl}}/v3/hlsmuxers/list")
require "http/client"

url = "{{baseUrl}}/v3/hlsmuxers/list"

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

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

func main() {

	url := "{{baseUrl}}/v3/hlsmuxers/list"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/hlsmuxers/list'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/hlsmuxers/list');

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}}/v3/hlsmuxers/list'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/hlsmuxers/list")

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

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

url = "{{baseUrl}}/v3/hlsmuxers/list"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/hlsmuxers/list"

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

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

url = URI("{{baseUrl}}/v3/hlsmuxers/list")

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/v3/hlsmuxers/list') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/hlsmuxers/list")! 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 returns a path.
{{baseUrl}}/v3/paths/get/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/paths/get/:name");

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

(client/get "{{baseUrl}}/v3/paths/get/:name")
require "http/client"

url = "{{baseUrl}}/v3/paths/get/:name"

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

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

func main() {

	url := "{{baseUrl}}/v3/paths/get/:name"

	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/v3/paths/get/:name HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/paths/get/:name'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/paths/get/:name")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/paths/get/:name');

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}}/v3/paths/get/:name'};

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

const url = '{{baseUrl}}/v3/paths/get/:name';
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}}/v3/paths/get/:name"]
                                                       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}}/v3/paths/get/:name" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/paths/get/:name');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v3/paths/get/:name")

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

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

url = "{{baseUrl}}/v3/paths/get/:name"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/paths/get/:name"

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

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

url = URI("{{baseUrl}}/v3/paths/get/:name")

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/v3/paths/get/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v3/paths/get/:name
http GET {{baseUrl}}/v3/paths/get/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/paths/get/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/paths/get/:name")! 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 returns all paths.
{{baseUrl}}/v3/paths/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/paths/list");

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

(client/get "{{baseUrl}}/v3/paths/list")
require "http/client"

url = "{{baseUrl}}/v3/paths/list"

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

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

func main() {

	url := "{{baseUrl}}/v3/paths/list"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/paths/list'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/paths/list');

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}}/v3/paths/list'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/paths/list")

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

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

url = "{{baseUrl}}/v3/paths/list"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/paths/list"

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

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

url = URI("{{baseUrl}}/v3/paths/list")

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/v3/paths/list') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/paths/list")! 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()
DELETE deletes a recording segment.
{{baseUrl}}/v3/recordings/deletesegment
QUERY PARAMS

path
start
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/recordings/deletesegment?path=&start=");

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

(client/delete "{{baseUrl}}/v3/recordings/deletesegment" {:query-params {:path ""
                                                                                         :start ""}})
require "http/client"

url = "{{baseUrl}}/v3/recordings/deletesegment?path=&start="

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

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

func main() {

	url := "{{baseUrl}}/v3/recordings/deletesegment?path=&start="

	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/v3/recordings/deletesegment?path=&start= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/v3/recordings/deletesegment?path=&start=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/recordings/deletesegment?path=&start="))
    .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}}/v3/recordings/deletesegment?path=&start=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/v3/recordings/deletesegment?path=&start=")
  .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}}/v3/recordings/deletesegment?path=&start=');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/v3/recordings/deletesegment',
  params: {path: '', start: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/recordings/deletesegment?path=&start=';
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}}/v3/recordings/deletesegment?path=&start=',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/recordings/deletesegment?path=&start=")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/recordings/deletesegment?path=&start=',
  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}}/v3/recordings/deletesegment',
  qs: {path: '', start: ''}
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/v3/recordings/deletesegment');

req.query({
  path: '',
  start: ''
});

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}}/v3/recordings/deletesegment',
  params: {path: '', start: ''}
};

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

const url = '{{baseUrl}}/v3/recordings/deletesegment?path=&start=';
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}}/v3/recordings/deletesegment?path=&start="]
                                                       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}}/v3/recordings/deletesegment?path=&start=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/recordings/deletesegment?path=&start=",
  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}}/v3/recordings/deletesegment?path=&start=');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/recordings/deletesegment');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'path' => '',
  'start' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/recordings/deletesegment');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'path' => '',
  'start' => ''
]));

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

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/recordings/deletesegment?path=&start=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/recordings/deletesegment?path=&start=' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/v3/recordings/deletesegment?path=&start=")

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

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

url = "{{baseUrl}}/v3/recordings/deletesegment"

querystring = {"path":"","start":""}

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

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

url <- "{{baseUrl}}/v3/recordings/deletesegment"

queryString <- list(
  path = "",
  start = ""
)

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

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

url = URI("{{baseUrl}}/v3/recordings/deletesegment?path=&start=")

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/v3/recordings/deletesegment') do |req|
  req.params['path'] = ''
  req.params['start'] = ''
end

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

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

    let querystring = [
        ("path", ""),
        ("start", ""),
    ];

    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}}/v3/recordings/deletesegment?path=&start='
http DELETE '{{baseUrl}}/v3/recordings/deletesegment?path=&start='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/v3/recordings/deletesegment?path=&start='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/recordings/deletesegment?path=&start=")! 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 returns all recordings.
{{baseUrl}}/v3/recordings/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/recordings/list");

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

(client/get "{{baseUrl}}/v3/recordings/list")
require "http/client"

url = "{{baseUrl}}/v3/recordings/list"

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

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

func main() {

	url := "{{baseUrl}}/v3/recordings/list"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/recordings/list'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/recordings/list');

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}}/v3/recordings/list'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/recordings/list")

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

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

url = "{{baseUrl}}/v3/recordings/list"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/recordings/list"

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

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

url = URI("{{baseUrl}}/v3/recordings/list")

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/v3/recordings/list') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/recordings/list")! 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 returns recordings for a path.
{{baseUrl}}/v3/recordings/get/:name
QUERY PARAMS

name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/recordings/get/:name");

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

(client/get "{{baseUrl}}/v3/recordings/get/:name")
require "http/client"

url = "{{baseUrl}}/v3/recordings/get/:name"

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

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

func main() {

	url := "{{baseUrl}}/v3/recordings/get/:name"

	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/v3/recordings/get/:name HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/recordings/get/:name'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/recordings/get/:name")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/recordings/get/:name');

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}}/v3/recordings/get/:name'};

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

const url = '{{baseUrl}}/v3/recordings/get/:name';
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}}/v3/recordings/get/:name"]
                                                       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}}/v3/recordings/get/:name" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/v3/recordings/get/:name');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/v3/recordings/get/:name")

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

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

url = "{{baseUrl}}/v3/recordings/get/:name"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/recordings/get/:name"

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

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

url = URI("{{baseUrl}}/v3/recordings/get/:name")

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/v3/recordings/get/:name') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/v3/recordings/get/:name
http GET {{baseUrl}}/v3/recordings/get/:name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/recordings/get/:name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/recordings/get/:name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST kicks out a RTMP connection from the server.
{{baseUrl}}/v3/rtmpconns/kick/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtmpconns/kick/:id");

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

(client/post "{{baseUrl}}/v3/rtmpconns/kick/:id")
require "http/client"

url = "{{baseUrl}}/v3/rtmpconns/kick/:id"

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

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

func main() {

	url := "{{baseUrl}}/v3/rtmpconns/kick/:id"

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

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

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

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

}
POST /baseUrl/v3/rtmpconns/kick/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtmpconns/kick/:id"))
    .method("POST", 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}}/v3/rtmpconns/kick/:id")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/rtmpconns/kick/: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('POST', '{{baseUrl}}/v3/rtmpconns/kick/:id');

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

const options = {method: 'POST', url: '{{baseUrl}}/v3/rtmpconns/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtmpconns/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtmpconns/kick/:id',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtmpconns/kick/:id")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/v3/rtmpconns/kick/: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: 'POST', url: '{{baseUrl}}/v3/rtmpconns/kick/:id'};

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

const url = '{{baseUrl}}/v3/rtmpconns/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtmpconns/kick/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v3/rtmpconns/kick/:id" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/rtmpconns/kick/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtmpconns/kick/:id');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/v3/rtmpconns/kick/:id")

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

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

url = "{{baseUrl}}/v3/rtmpconns/kick/:id"

response = requests.post(url)

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

url <- "{{baseUrl}}/v3/rtmpconns/kick/:id"

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

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

url = URI("{{baseUrl}}/v3/rtmpconns/kick/:id")

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

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

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

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

response = conn.post('/baseUrl/v3/rtmpconns/kick/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/rtmpconns/kick/:id
http POST {{baseUrl}}/v3/rtmpconns/kick/:id
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v3/rtmpconns/kick/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtmpconns/kick/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 kicks out a RTMPS connection from the server.
{{baseUrl}}/v3/rtmpsconns/kick/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtmpsconns/kick/:id");

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

(client/post "{{baseUrl}}/v3/rtmpsconns/kick/:id")
require "http/client"

url = "{{baseUrl}}/v3/rtmpsconns/kick/:id"

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

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

func main() {

	url := "{{baseUrl}}/v3/rtmpsconns/kick/:id"

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

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

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

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

}
POST /baseUrl/v3/rtmpsconns/kick/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtmpsconns/kick/:id"))
    .method("POST", 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}}/v3/rtmpsconns/kick/:id")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/rtmpsconns/kick/: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('POST', '{{baseUrl}}/v3/rtmpsconns/kick/:id');

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

const options = {method: 'POST', url: '{{baseUrl}}/v3/rtmpsconns/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtmpsconns/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtmpsconns/kick/:id',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtmpsconns/kick/:id")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/v3/rtmpsconns/kick/: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: 'POST', url: '{{baseUrl}}/v3/rtmpsconns/kick/:id'};

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

const url = '{{baseUrl}}/v3/rtmpsconns/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtmpsconns/kick/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v3/rtmpsconns/kick/:id" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/rtmpsconns/kick/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtmpsconns/kick/:id');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/v3/rtmpsconns/kick/:id")

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

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

url = "{{baseUrl}}/v3/rtmpsconns/kick/:id"

response = requests.post(url)

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

url <- "{{baseUrl}}/v3/rtmpsconns/kick/:id"

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

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

url = URI("{{baseUrl}}/v3/rtmpsconns/kick/:id")

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

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

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

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

response = conn.post('/baseUrl/v3/rtmpsconns/kick/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/rtmpsconns/kick/:id
http POST {{baseUrl}}/v3/rtmpsconns/kick/:id
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v3/rtmpsconns/kick/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtmpsconns/kick/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 returns a RTMP connection.
{{baseUrl}}/v3/rtmpconns/get/: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}}/v3/rtmpconns/get/:id");

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

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

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

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

func main() {

	url := "{{baseUrl}}/v3/rtmpconns/get/: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/v3/rtmpconns/get/:id HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtmpconns/get/:id'};

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

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

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

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

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

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

const url = '{{baseUrl}}/v3/rtmpconns/get/: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}}/v3/rtmpconns/get/: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}}/v3/rtmpconns/get/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/rtmpconns/get/:id")

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

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

url = "{{baseUrl}}/v3/rtmpconns/get/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/rtmpconns/get/:id"

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

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

url = URI("{{baseUrl}}/v3/rtmpconns/get/: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/v3/rtmpconns/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtmpconns/get/: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 returns a RTMPS connection.
{{baseUrl}}/v3/rtmpsconns/get/: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}}/v3/rtmpsconns/get/:id");

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

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

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

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

func main() {

	url := "{{baseUrl}}/v3/rtmpsconns/get/: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/v3/rtmpsconns/get/:id HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtmpsconns/get/:id'};

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

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

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

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

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

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

const url = '{{baseUrl}}/v3/rtmpsconns/get/: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}}/v3/rtmpsconns/get/: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}}/v3/rtmpsconns/get/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/rtmpsconns/get/:id")

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

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

url = "{{baseUrl}}/v3/rtmpsconns/get/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/rtmpsconns/get/:id"

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

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

url = URI("{{baseUrl}}/v3/rtmpsconns/get/: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/v3/rtmpsconns/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtmpsconns/get/: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 returns all RTMP connections.
{{baseUrl}}/v3/rtmpconns/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtmpconns/list");

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

(client/get "{{baseUrl}}/v3/rtmpconns/list")
require "http/client"

url = "{{baseUrl}}/v3/rtmpconns/list"

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

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

func main() {

	url := "{{baseUrl}}/v3/rtmpconns/list"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtmpconns/list'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/rtmpconns/list');

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}}/v3/rtmpconns/list'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/rtmpconns/list")

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

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

url = "{{baseUrl}}/v3/rtmpconns/list"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/rtmpconns/list"

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

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

url = URI("{{baseUrl}}/v3/rtmpconns/list")

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/v3/rtmpconns/list') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtmpconns/list")! 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 returns all RTMPS connections.
{{baseUrl}}/v3/rtmpsconns/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtmpsconns/list");

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

(client/get "{{baseUrl}}/v3/rtmpsconns/list")
require "http/client"

url = "{{baseUrl}}/v3/rtmpsconns/list"

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

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

func main() {

	url := "{{baseUrl}}/v3/rtmpsconns/list"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtmpsconns/list'};

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

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

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

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/v3/rtmpsconns/list');

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}}/v3/rtmpsconns/list'};

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/rtmpsconns/list")

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

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

url = "{{baseUrl}}/v3/rtmpsconns/list"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/rtmpsconns/list"

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

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

url = URI("{{baseUrl}}/v3/rtmpsconns/list")

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/v3/rtmpsconns/list') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtmpsconns/list")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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

dataTask.resume()
POST kicks out a RTSP session from the server.
{{baseUrl}}/v3/rtspsessions/kick/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtspsessions/kick/:id");

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

(client/post "{{baseUrl}}/v3/rtspsessions/kick/:id")
require "http/client"

url = "{{baseUrl}}/v3/rtspsessions/kick/:id"

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

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

func main() {

	url := "{{baseUrl}}/v3/rtspsessions/kick/:id"

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

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

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

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

}
POST /baseUrl/v3/rtspsessions/kick/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspsessions/kick/:id"))
    .method("POST", 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}}/v3/rtspsessions/kick/:id")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/rtspsessions/kick/: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('POST', '{{baseUrl}}/v3/rtspsessions/kick/:id');

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

const options = {method: 'POST', url: '{{baseUrl}}/v3/rtspsessions/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspsessions/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtspsessions/kick/:id',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspsessions/kick/:id")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/v3/rtspsessions/kick/: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: 'POST', url: '{{baseUrl}}/v3/rtspsessions/kick/:id'};

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

const url = '{{baseUrl}}/v3/rtspsessions/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtspsessions/kick/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v3/rtspsessions/kick/:id" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/rtspsessions/kick/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspsessions/kick/:id');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/v3/rtspsessions/kick/:id")

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

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

url = "{{baseUrl}}/v3/rtspsessions/kick/:id"

response = requests.post(url)

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

url <- "{{baseUrl}}/v3/rtspsessions/kick/:id"

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

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

url = URI("{{baseUrl}}/v3/rtspsessions/kick/:id")

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

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

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

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

response = conn.post('/baseUrl/v3/rtspsessions/kick/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/rtspsessions/kick/:id
http POST {{baseUrl}}/v3/rtspsessions/kick/:id
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v3/rtspsessions/kick/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspsessions/kick/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 kicks out a RTSPS session from the server.
{{baseUrl}}/v3/rtspssessions/kick/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtspssessions/kick/:id");

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

(client/post "{{baseUrl}}/v3/rtspssessions/kick/:id")
require "http/client"

url = "{{baseUrl}}/v3/rtspssessions/kick/:id"

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

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

func main() {

	url := "{{baseUrl}}/v3/rtspssessions/kick/:id"

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

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

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

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

}
POST /baseUrl/v3/rtspssessions/kick/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspssessions/kick/:id"))
    .method("POST", 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}}/v3/rtspssessions/kick/:id")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/rtspssessions/kick/: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('POST', '{{baseUrl}}/v3/rtspssessions/kick/:id');

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

const options = {method: 'POST', url: '{{baseUrl}}/v3/rtspssessions/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspssessions/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtspssessions/kick/:id',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspssessions/kick/:id")
  .post(null)
  .build()

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

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

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

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

const req = unirest('POST', '{{baseUrl}}/v3/rtspssessions/kick/: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: 'POST', url: '{{baseUrl}}/v3/rtspssessions/kick/:id'};

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

const url = '{{baseUrl}}/v3/rtspssessions/kick/:id';
const options = {method: 'POST'};

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}}/v3/rtspssessions/kick/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v3/rtspssessions/kick/:id" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/rtspssessions/kick/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspssessions/kick/:id');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

conn.request("POST", "/baseUrl/v3/rtspssessions/kick/:id")

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

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

url = "{{baseUrl}}/v3/rtspssessions/kick/:id"

response = requests.post(url)

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

url <- "{{baseUrl}}/v3/rtspssessions/kick/:id"

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

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

url = URI("{{baseUrl}}/v3/rtspssessions/kick/:id")

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

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

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

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

response = conn.post('/baseUrl/v3/rtspssessions/kick/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/rtspssessions/kick/:id
http POST {{baseUrl}}/v3/rtspssessions/kick/:id
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v3/rtspssessions/kick/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspssessions/kick/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 returns a RTSP connection.
{{baseUrl}}/v3/rtspconns/get/: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}}/v3/rtspconns/get/:id");

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

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

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

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

func main() {

	url := "{{baseUrl}}/v3/rtspconns/get/: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/v3/rtspconns/get/:id HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspconns/get/:id'};

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

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

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

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

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

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

const url = '{{baseUrl}}/v3/rtspconns/get/: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}}/v3/rtspconns/get/: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}}/v3/rtspconns/get/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/v3/rtspconns/get/:id")

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

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

url = "{{baseUrl}}/v3/rtspconns/get/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/v3/rtspconns/get/:id"

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

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

url = URI("{{baseUrl}}/v3/rtspconns/get/: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/v3/rtspconns/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspconns/get/: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 returns a RTSP session.
{{baseUrl}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id");

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

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

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

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

func main() {

	url := "{{baseUrl}}/v3/rtspsessions/get/: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/v3/rtspsessions/get/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspsessions/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspsessions/get/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspsessions/get/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/rtspsessions/get/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/rtspsessions/get/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/rtspsessions/get/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/rtspsessions/get/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/rtspsessions/get/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/rtspsessions/get/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/rtspsessions/get/: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/v3/rtspsessions/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/rtspsessions/get/: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}}/v3/rtspsessions/get/:id
http GET {{baseUrl}}/v3/rtspsessions/get/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/rtspsessions/get/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspsessions/get/: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 returns a RTSPS connection.
{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/rtspsconns/get/:id")
require "http/client"

url = "{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/rtspsconns/get/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/rtspsconns/get/: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/v3/rtspsconns/get/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/rtspsconns/get/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspsconns/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspsconns/get/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspsconns/get/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/rtspsconns/get/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/rtspsconns/get/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/rtspsconns/get/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/rtspsconns/get/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/rtspsconns/get/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/rtspsconns/get/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/rtspsconns/get/: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/v3/rtspsconns/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/rtspsconns/get/: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}}/v3/rtspsconns/get/:id
http GET {{baseUrl}}/v3/rtspsconns/get/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/rtspsconns/get/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspsconns/get/: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 returns a RTSPS session.
{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/rtspssessions/get/:id")
require "http/client"

url = "{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/rtspssessions/get/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/rtspssessions/get/: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/v3/rtspssessions/get/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/rtspssessions/get/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspssessions/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspssessions/get/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspssessions/get/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/rtspssessions/get/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/rtspssessions/get/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/rtspssessions/get/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/rtspssessions/get/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/rtspssessions/get/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/rtspssessions/get/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/rtspssessions/get/: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/v3/rtspssessions/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/rtspssessions/get/: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}}/v3/rtspssessions/get/:id
http GET {{baseUrl}}/v3/rtspssessions/get/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/rtspssessions/get/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspssessions/get/: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 returns all RTSP connections.
{{baseUrl}}/v3/rtspconns/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtspconns/list");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/rtspconns/list")
require "http/client"

url = "{{baseUrl}}/v3/rtspconns/list"

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}}/v3/rtspconns/list"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/rtspconns/list");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/rtspconns/list"

	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/v3/rtspconns/list HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/rtspconns/list")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspconns/list"))
    .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}}/v3/rtspconns/list")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/rtspconns/list")
  .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}}/v3/rtspconns/list');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspconns/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspconns/list';
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}}/v3/rtspconns/list',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspconns/list")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/rtspconns/list',
  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}}/v3/rtspconns/list'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/rtspconns/list');

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}}/v3/rtspconns/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/rtspconns/list';
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}}/v3/rtspconns/list"]
                                                       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}}/v3/rtspconns/list" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/rtspconns/list",
  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}}/v3/rtspconns/list');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspconns/list');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/rtspconns/list');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/rtspconns/list' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/rtspconns/list' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/rtspconns/list")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/rtspconns/list"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/rtspconns/list"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/rtspconns/list")

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/v3/rtspconns/list') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/rtspconns/list";

    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}}/v3/rtspconns/list
http GET {{baseUrl}}/v3/rtspconns/list
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/rtspconns/list
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspconns/list")! 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 returns all RTSP sessions.
{{baseUrl}}/v3/rtspsessions/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtspsessions/list");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/rtspsessions/list")
require "http/client"

url = "{{baseUrl}}/v3/rtspsessions/list"

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}}/v3/rtspsessions/list"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/rtspsessions/list");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/rtspsessions/list"

	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/v3/rtspsessions/list HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/rtspsessions/list")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspsessions/list"))
    .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}}/v3/rtspsessions/list")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/rtspsessions/list")
  .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}}/v3/rtspsessions/list');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspsessions/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspsessions/list';
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}}/v3/rtspsessions/list',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspsessions/list")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/rtspsessions/list',
  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}}/v3/rtspsessions/list'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/rtspsessions/list');

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}}/v3/rtspsessions/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/rtspsessions/list';
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}}/v3/rtspsessions/list"]
                                                       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}}/v3/rtspsessions/list" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/rtspsessions/list",
  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}}/v3/rtspsessions/list');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspsessions/list');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/rtspsessions/list');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/rtspsessions/list' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/rtspsessions/list' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/rtspsessions/list")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/rtspsessions/list"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/rtspsessions/list"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/rtspsessions/list")

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/v3/rtspsessions/list') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/rtspsessions/list";

    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}}/v3/rtspsessions/list
http GET {{baseUrl}}/v3/rtspsessions/list
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/rtspsessions/list
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspsessions/list")! 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 returns all RTSPS connections.
{{baseUrl}}/v3/rtspsconns/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtspsconns/list");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/rtspsconns/list")
require "http/client"

url = "{{baseUrl}}/v3/rtspsconns/list"

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}}/v3/rtspsconns/list"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/rtspsconns/list");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/rtspsconns/list"

	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/v3/rtspsconns/list HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/rtspsconns/list")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspsconns/list"))
    .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}}/v3/rtspsconns/list")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/rtspsconns/list")
  .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}}/v3/rtspsconns/list');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspsconns/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspsconns/list';
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}}/v3/rtspsconns/list',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspsconns/list")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/rtspsconns/list',
  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}}/v3/rtspsconns/list'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/rtspsconns/list');

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}}/v3/rtspsconns/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/rtspsconns/list';
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}}/v3/rtspsconns/list"]
                                                       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}}/v3/rtspsconns/list" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/rtspsconns/list",
  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}}/v3/rtspsconns/list');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspsconns/list');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/rtspsconns/list');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/rtspsconns/list' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/rtspsconns/list' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/rtspsconns/list")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/rtspsconns/list"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/rtspsconns/list"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/rtspsconns/list")

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/v3/rtspsconns/list') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/rtspsconns/list";

    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}}/v3/rtspsconns/list
http GET {{baseUrl}}/v3/rtspsconns/list
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/rtspsconns/list
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspsconns/list")! 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 returns all RTSPS sessions.
{{baseUrl}}/v3/rtspssessions/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/rtspssessions/list");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/rtspssessions/list")
require "http/client"

url = "{{baseUrl}}/v3/rtspssessions/list"

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}}/v3/rtspssessions/list"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/rtspssessions/list");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/rtspssessions/list"

	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/v3/rtspssessions/list HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/rtspssessions/list")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/rtspssessions/list"))
    .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}}/v3/rtspssessions/list")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/rtspssessions/list")
  .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}}/v3/rtspssessions/list');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/rtspssessions/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/rtspssessions/list';
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}}/v3/rtspssessions/list',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/rtspssessions/list")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/rtspssessions/list',
  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}}/v3/rtspssessions/list'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/rtspssessions/list');

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}}/v3/rtspssessions/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/rtspssessions/list';
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}}/v3/rtspssessions/list"]
                                                       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}}/v3/rtspssessions/list" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/rtspssessions/list",
  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}}/v3/rtspssessions/list');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/rtspssessions/list');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/rtspssessions/list');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/rtspssessions/list' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/rtspssessions/list' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/rtspssessions/list")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/rtspssessions/list"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/rtspssessions/list"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/rtspssessions/list")

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/v3/rtspssessions/list') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/rtspssessions/list";

    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}}/v3/rtspssessions/list
http GET {{baseUrl}}/v3/rtspssessions/list
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/rtspssessions/list
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/rtspssessions/list")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST kicks out a SRT connection from the server.
{{baseUrl}}/v3/srtconns/kick/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/srtconns/kick/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v3/srtconns/kick/:id")
require "http/client"

url = "{{baseUrl}}/v3/srtconns/kick/:id"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/srtconns/kick/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/srtconns/kick/:id");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/srtconns/kick/:id"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v3/srtconns/kick/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/srtconns/kick/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/srtconns/kick/:id"))
    .method("POST", 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}}/v3/srtconns/kick/:id")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/srtconns/kick/: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('POST', '{{baseUrl}}/v3/srtconns/kick/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/v3/srtconns/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/srtconns/kick/:id';
const options = {method: 'POST'};

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}}/v3/srtconns/kick/:id',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/srtconns/kick/:id")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/srtconns/kick/: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: 'POST', url: '{{baseUrl}}/v3/srtconns/kick/:id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v3/srtconns/kick/: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: 'POST', url: '{{baseUrl}}/v3/srtconns/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/srtconns/kick/:id';
const options = {method: 'POST'};

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}}/v3/srtconns/kick/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v3/srtconns/kick/:id" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/srtconns/kick/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/srtconns/kick/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/srtconns/kick/:id');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/srtconns/kick/:id');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/srtconns/kick/:id' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/srtconns/kick/:id' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/v3/srtconns/kick/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/srtconns/kick/:id"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/srtconns/kick/:id"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/srtconns/kick/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/v3/srtconns/kick/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/srtconns/kick/:id";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/srtconns/kick/:id
http POST {{baseUrl}}/v3/srtconns/kick/:id
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v3/srtconns/kick/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/srtconns/kick/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 returns a SRT connection.
{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/srtconns/get/:id")
require "http/client"

url = "{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/srtconns/get/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/srtconns/get/: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/v3/srtconns/get/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/srtconns/get/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/srtconns/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/srtconns/get/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/srtconns/get/: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}}/v3/srtconns/get/: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}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/srtconns/get/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/srtconns/get/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/srtconns/get/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/srtconns/get/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/srtconns/get/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/srtconns/get/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/srtconns/get/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/srtconns/get/: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/v3/srtconns/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/srtconns/get/: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}}/v3/srtconns/get/:id
http GET {{baseUrl}}/v3/srtconns/get/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/srtconns/get/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/srtconns/get/: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 returns all SRT connections.
{{baseUrl}}/v3/srtconns/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/srtconns/list");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/srtconns/list")
require "http/client"

url = "{{baseUrl}}/v3/srtconns/list"

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}}/v3/srtconns/list"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/srtconns/list");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/srtconns/list"

	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/v3/srtconns/list HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/srtconns/list")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/srtconns/list"))
    .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}}/v3/srtconns/list")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/srtconns/list")
  .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}}/v3/srtconns/list');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/srtconns/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/srtconns/list';
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}}/v3/srtconns/list',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/srtconns/list")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/srtconns/list',
  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}}/v3/srtconns/list'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/srtconns/list');

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}}/v3/srtconns/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/srtconns/list';
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}}/v3/srtconns/list"]
                                                       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}}/v3/srtconns/list" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/srtconns/list",
  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}}/v3/srtconns/list');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/srtconns/list');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/srtconns/list');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/srtconns/list' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/srtconns/list' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/srtconns/list")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/srtconns/list"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/srtconns/list"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/srtconns/list")

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/v3/srtconns/list') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/srtconns/list";

    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}}/v3/srtconns/list
http GET {{baseUrl}}/v3/srtconns/list
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/srtconns/list
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/srtconns/list")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST kicks out a WebRTC session from the server.
{{baseUrl}}/v3/webrtcsessions/kick/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/webrtcsessions/kick/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/v3/webrtcsessions/kick/:id")
require "http/client"

url = "{{baseUrl}}/v3/webrtcsessions/kick/:id"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/v3/webrtcsessions/kick/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/webrtcsessions/kick/:id");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/webrtcsessions/kick/:id"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/v3/webrtcsessions/kick/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/v3/webrtcsessions/kick/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/webrtcsessions/kick/:id"))
    .method("POST", 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}}/v3/webrtcsessions/kick/:id")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/v3/webrtcsessions/kick/: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('POST', '{{baseUrl}}/v3/webrtcsessions/kick/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/v3/webrtcsessions/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/webrtcsessions/kick/:id';
const options = {method: 'POST'};

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}}/v3/webrtcsessions/kick/:id',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/webrtcsessions/kick/:id")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/webrtcsessions/kick/: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: 'POST', url: '{{baseUrl}}/v3/webrtcsessions/kick/:id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/v3/webrtcsessions/kick/: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: 'POST', url: '{{baseUrl}}/v3/webrtcsessions/kick/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/webrtcsessions/kick/:id';
const options = {method: 'POST'};

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}}/v3/webrtcsessions/kick/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

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}}/v3/webrtcsessions/kick/:id" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/webrtcsessions/kick/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/v3/webrtcsessions/kick/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/webrtcsessions/kick/:id');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/webrtcsessions/kick/:id');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/webrtcsessions/kick/:id' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/webrtcsessions/kick/:id' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/v3/webrtcsessions/kick/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/webrtcsessions/kick/:id"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/webrtcsessions/kick/:id"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/webrtcsessions/kick/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/v3/webrtcsessions/kick/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/webrtcsessions/kick/:id";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/v3/webrtcsessions/kick/:id
http POST {{baseUrl}}/v3/webrtcsessions/kick/:id
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/v3/webrtcsessions/kick/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/webrtcsessions/kick/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

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 returns a WebRTC session.
{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/webrtcsessions/get/:id")
require "http/client"

url = "{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/webrtcsessions/get/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/webrtcsessions/get/: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/v3/webrtcsessions/get/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/webrtcsessions/get/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/webrtcsessions/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/webrtcsessions/get/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/webrtcsessions/get/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/webrtcsessions/get/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/webrtcsessions/get/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/webrtcsessions/get/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/webrtcsessions/get/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/webrtcsessions/get/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/webrtcsessions/get/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/webrtcsessions/get/: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/v3/webrtcsessions/get/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/webrtcsessions/get/: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}}/v3/webrtcsessions/get/:id
http GET {{baseUrl}}/v3/webrtcsessions/get/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/webrtcsessions/get/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/webrtcsessions/get/: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 returns all WebRTC sessions.
{{baseUrl}}/v3/webrtcsessions/list
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/v3/webrtcsessions/list");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/v3/webrtcsessions/list")
require "http/client"

url = "{{baseUrl}}/v3/webrtcsessions/list"

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}}/v3/webrtcsessions/list"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/v3/webrtcsessions/list");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/v3/webrtcsessions/list"

	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/v3/webrtcsessions/list HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/v3/webrtcsessions/list")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/v3/webrtcsessions/list"))
    .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}}/v3/webrtcsessions/list")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/v3/webrtcsessions/list")
  .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}}/v3/webrtcsessions/list');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/v3/webrtcsessions/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/v3/webrtcsessions/list';
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}}/v3/webrtcsessions/list',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/v3/webrtcsessions/list")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/v3/webrtcsessions/list',
  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}}/v3/webrtcsessions/list'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/v3/webrtcsessions/list');

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}}/v3/webrtcsessions/list'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/v3/webrtcsessions/list';
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}}/v3/webrtcsessions/list"]
                                                       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}}/v3/webrtcsessions/list" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/v3/webrtcsessions/list",
  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}}/v3/webrtcsessions/list');

echo $response->getBody();
setUrl('{{baseUrl}}/v3/webrtcsessions/list');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/v3/webrtcsessions/list');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/v3/webrtcsessions/list' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/v3/webrtcsessions/list' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/v3/webrtcsessions/list")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/v3/webrtcsessions/list"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/v3/webrtcsessions/list"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/v3/webrtcsessions/list")

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/v3/webrtcsessions/list') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/v3/webrtcsessions/list";

    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}}/v3/webrtcsessions/list
http GET {{baseUrl}}/v3/webrtcsessions/list
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/v3/webrtcsessions/list
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/v3/webrtcsessions/list")! 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()