DELETE Clear any user login failures for all users This can release temporary disabled users
{{baseUrl}}/:realm/attack-detection/brute-force/users
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/attack-detection/brute-force/users");

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

(client/delete "{{baseUrl}}/:realm/attack-detection/brute-force/users")
require "http/client"

url = "{{baseUrl}}/:realm/attack-detection/brute-force/users"

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

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

func main() {

	url := "{{baseUrl}}/:realm/attack-detection/brute-force/users"

	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/:realm/attack-detection/brute-force/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/attack-detection/brute-force/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/attack-detection/brute-force/users"))
    .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}}/:realm/attack-detection/brute-force/users")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/attack-detection/brute-force/users")
  .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}}/:realm/attack-detection/brute-force/users');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/attack-detection/brute-force/users'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/attack-detection/brute-force/users")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/attack-detection/brute-force/users',
  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}}/:realm/attack-detection/brute-force/users'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/:realm/attack-detection/brute-force/users');

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}}/:realm/attack-detection/brute-force/users'
};

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

const url = '{{baseUrl}}/:realm/attack-detection/brute-force/users';
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}}/:realm/attack-detection/brute-force/users"]
                                                       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}}/:realm/attack-detection/brute-force/users" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/attack-detection/brute-force/users');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/attack-detection/brute-force/users');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/attack-detection/brute-force/users' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/attack-detection/brute-force/users' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/:realm/attack-detection/brute-force/users")

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

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

url = "{{baseUrl}}/:realm/attack-detection/brute-force/users"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:realm/attack-detection/brute-force/users"

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

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

url = URI("{{baseUrl}}/:realm/attack-detection/brute-force/users")

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/:realm/attack-detection/brute-force/users') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/attack-detection/brute-force/users";

    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}}/:realm/attack-detection/brute-force/users
http DELETE {{baseUrl}}/:realm/attack-detection/brute-force/users
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/attack-detection/brute-force/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/attack-detection/brute-force/users")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

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

dataTask.resume()
DELETE Clear any user login failures for the user This can release temporary disabled user
{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId");

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

(client/delete "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
require "http/client"

url = "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

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

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

func main() {

	url := "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

	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/:realm/attack-detection/brute-force/users/:userId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"))
    .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}}/:realm/attack-detection/brute-force/users/:userId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
  .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}}/:realm/attack-detection/brute-force/users/:userId');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId';
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}}/:realm/attack-detection/brute-force/users/:userId',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/attack-detection/brute-force/users/:userId',
  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}}/:realm/attack-detection/brute-force/users/:userId'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId');

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}}/:realm/attack-detection/brute-force/users/:userId'
};

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

const url = '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId';
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}}/:realm/attack-detection/brute-force/users/:userId"]
                                                       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}}/:realm/attack-detection/brute-force/users/:userId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId",
  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}}/:realm/attack-detection/brute-force/users/:userId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/:realm/attack-detection/brute-force/users/:userId")

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

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

url = "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

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

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

url = URI("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")

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/:realm/attack-detection/brute-force/users/:userId') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId";

    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}}/:realm/attack-detection/brute-force/users/:userId
http DELETE {{baseUrl}}/:realm/attack-detection/brute-force/users/:userId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/attack-detection/brute-force/users/:userId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")! 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 Get status of a username in brute force detection
{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId");

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

(client/get "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
require "http/client"

url = "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

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

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

func main() {

	url := "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

	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/:realm/attack-detection/brute-force/users/:userId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"))
    .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}}/:realm/attack-detection/brute-force/users/:userId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
  .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}}/:realm/attack-detection/brute-force/users/:userId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/attack-detection/brute-force/users/:userId',
  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}}/:realm/attack-detection/brute-force/users/:userId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId');

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}}/:realm/attack-detection/brute-force/users/:userId'
};

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

const url = '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId';
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}}/:realm/attack-detection/brute-force/users/:userId"]
                                                       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}}/:realm/attack-detection/brute-force/users/:userId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId",
  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}}/:realm/attack-detection/brute-force/users/:userId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:realm/attack-detection/brute-force/users/:userId")

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

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

url = "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId"

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

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

url = URI("{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")

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/:realm/attack-detection/brute-force/users/:userId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId";

    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}}/:realm/attack-detection/brute-force/users/:userId
http GET {{baseUrl}}/:realm/attack-detection/brute-force/users/:userId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/attack-detection/brute-force/users/:userId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/attack-detection/brute-force/users/:userId")! 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 Add new authentication execution to a flow
{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution");

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

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

(client/post "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/:realm/authentication/flows/:flowAlias/executions/execution"),
    Content = new StringContent("{}")
    {
        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}}/:realm/authentication/flows/:flowAlias/executions/execution");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution"

	payload := strings.NewReader("{}")

	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/:realm/authentication/flows/:flowAlias/executions/execution HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

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

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

xhr.open('POST', '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/:realm/authentication/flows/:flowAlias/executions/execution',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution")
  .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/:realm/authentication/flows/:flowAlias/executions/execution',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/:realm/authentication/flows/:flowAlias/executions/execution');

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

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

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}}/:realm/authentication/flows/:flowAlias/executions/execution',
  headers: {'content-type': 'application/json'},
  data: {}
};

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

const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution"]
                                                       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}}/:realm/authentication/flows/:flowAlias/executions/execution" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

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

payload = "{}"

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

conn.request("POST", "/baseUrl/:realm/authentication/flows/:flowAlias/executions/execution", payload, headers)

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

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

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution"

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

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

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

url <- "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution"

payload <- "{}"

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}}/:realm/authentication/flows/:flowAlias/executions/execution")

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 = "{}"

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/:realm/authentication/flows/:flowAlias/executions/execution') do |req|
  req.body = "{}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution";

    let payload = json!({});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/execution
import Foundation

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

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

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

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

dataTask.resume()
POST Add new authentication execution
{{baseUrl}}/:realm/authentication/executions
BODY json

{
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/executions");

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  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}");

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

(client/post "{{baseUrl}}/:realm/authentication/executions" {:content-type :json
                                                                             :form-params {:authenticator ""
                                                                                           :authenticatorConfig ""
                                                                                           :authenticatorFlow false
                                                                                           :autheticatorFlow false
                                                                                           :flowId ""
                                                                                           :id ""
                                                                                           :parentFlow ""
                                                                                           :priority 0
                                                                                           :requirement ""}})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/executions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\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}}/:realm/authentication/executions"),
    Content = new StringContent("{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\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}}/:realm/authentication/executions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/executions"

	payload := strings.NewReader("{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\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/:realm/authentication/executions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 199

{
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/executions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/executions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\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  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/executions")
  .header("content-type", "application/json")
  .body("{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  authenticator: '',
  authenticatorConfig: '',
  authenticatorFlow: false,
  autheticatorFlow: false,
  flowId: '',
  id: '',
  parentFlow: '',
  priority: 0,
  requirement: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/:realm/authentication/executions');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/executions',
  headers: {'content-type': 'application/json'},
  data: {
    authenticator: '',
    authenticatorConfig: '',
    authenticatorFlow: false,
    autheticatorFlow: false,
    flowId: '',
    id: '',
    parentFlow: '',
    priority: 0,
    requirement: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/executions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowId":"","id":"","parentFlow":"","priority":0,"requirement":""}'
};

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}}/:realm/authentication/executions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "authenticator": "",\n  "authenticatorConfig": "",\n  "authenticatorFlow": false,\n  "autheticatorFlow": false,\n  "flowId": "",\n  "id": "",\n  "parentFlow": "",\n  "priority": 0,\n  "requirement": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions")
  .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/:realm/authentication/executions',
  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({
  authenticator: '',
  authenticatorConfig: '',
  authenticatorFlow: false,
  autheticatorFlow: false,
  flowId: '',
  id: '',
  parentFlow: '',
  priority: 0,
  requirement: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/executions',
  headers: {'content-type': 'application/json'},
  body: {
    authenticator: '',
    authenticatorConfig: '',
    authenticatorFlow: false,
    autheticatorFlow: false,
    flowId: '',
    id: '',
    parentFlow: '',
    priority: 0,
    requirement: ''
  },
  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}}/:realm/authentication/executions');

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

req.type('json');
req.send({
  authenticator: '',
  authenticatorConfig: '',
  authenticatorFlow: false,
  autheticatorFlow: false,
  flowId: '',
  id: '',
  parentFlow: '',
  priority: 0,
  requirement: ''
});

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}}/:realm/authentication/executions',
  headers: {'content-type': 'application/json'},
  data: {
    authenticator: '',
    authenticatorConfig: '',
    authenticatorFlow: false,
    autheticatorFlow: false,
    flowId: '',
    id: '',
    parentFlow: '',
    priority: 0,
    requirement: ''
  }
};

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

const url = '{{baseUrl}}/:realm/authentication/executions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowId":"","id":"","parentFlow":"","priority":0,"requirement":""}'
};

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 = @{ @"authenticator": @"",
                              @"authenticatorConfig": @"",
                              @"authenticatorFlow": @NO,
                              @"autheticatorFlow": @NO,
                              @"flowId": @"",
                              @"id": @"",
                              @"parentFlow": @"",
                              @"priority": @0,
                              @"requirement": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/executions"]
                                                       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}}/:realm/authentication/executions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/executions",
  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([
    'authenticator' => '',
    'authenticatorConfig' => '',
    'authenticatorFlow' => null,
    'autheticatorFlow' => null,
    'flowId' => '',
    'id' => '',
    'parentFlow' => '',
    'priority' => 0,
    'requirement' => ''
  ]),
  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}}/:realm/authentication/executions', [
  'body' => '{
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/executions');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'authenticator' => '',
  'authenticatorConfig' => '',
  'authenticatorFlow' => null,
  'autheticatorFlow' => null,
  'flowId' => '',
  'id' => '',
  'parentFlow' => '',
  'priority' => 0,
  'requirement' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'authenticator' => '',
  'authenticatorConfig' => '',
  'authenticatorFlow' => null,
  'autheticatorFlow' => null,
  'flowId' => '',
  'id' => '',
  'parentFlow' => '',
  'priority' => 0,
  'requirement' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/authentication/executions');
$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}}/:realm/authentication/executions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/executions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
}'
import http.client

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

payload = "{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}"

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

conn.request("POST", "/baseUrl/:realm/authentication/executions", payload, headers)

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

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

url = "{{baseUrl}}/:realm/authentication/executions"

payload = {
    "authenticator": "",
    "authenticatorConfig": "",
    "authenticatorFlow": False,
    "autheticatorFlow": False,
    "flowId": "",
    "id": "",
    "parentFlow": "",
    "priority": 0,
    "requirement": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/:realm/authentication/executions"

payload <- "{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\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}}/:realm/authentication/executions")

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  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\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/:realm/authentication/executions') do |req|
  req.body = "{\n  \"authenticator\": \"\",\n  \"authenticatorConfig\": \"\",\n  \"authenticatorFlow\": false,\n  \"autheticatorFlow\": false,\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"parentFlow\": \"\",\n  \"priority\": 0,\n  \"requirement\": \"\"\n}"
end

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

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

    let payload = json!({
        "authenticator": "",
        "authenticatorConfig": "",
        "authenticatorFlow": false,
        "autheticatorFlow": false,
        "flowId": "",
        "id": "",
        "parentFlow": "",
        "priority": 0,
        "requirement": ""
    });

    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}}/:realm/authentication/executions \
  --header 'content-type: application/json' \
  --data '{
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
}'
echo '{
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
}' |  \
  http POST {{baseUrl}}/:realm/authentication/executions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "authenticator": "",\n  "authenticatorConfig": "",\n  "authenticatorFlow": false,\n  "autheticatorFlow": false,\n  "flowId": "",\n  "id": "",\n  "parentFlow": "",\n  "priority": 0,\n  "requirement": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/executions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "authenticator": "",
  "authenticatorConfig": "",
  "authenticatorFlow": false,
  "autheticatorFlow": false,
  "flowId": "",
  "id": "",
  "parentFlow": "",
  "priority": 0,
  "requirement": ""
] as [String : Any]

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

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

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

dataTask.resume()
POST Add new flow with new execution to existing flow
{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow");

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

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

(client/post "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/:realm/authentication/flows/:flowAlias/executions/flow"),
    Content = new StringContent("{}")
    {
        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}}/:realm/authentication/flows/:flowAlias/executions/flow");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow"

	payload := strings.NewReader("{}")

	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/:realm/authentication/flows/:flowAlias/executions/flow HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

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

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

xhr.open('POST', '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/:realm/authentication/flows/:flowAlias/executions/flow',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow")
  .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/:realm/authentication/flows/:flowAlias/executions/flow',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/:realm/authentication/flows/:flowAlias/executions/flow');

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

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

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}}/:realm/authentication/flows/:flowAlias/executions/flow',
  headers: {'content-type': 'application/json'},
  data: {}
};

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

const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow"]
                                                       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}}/:realm/authentication/flows/:flowAlias/executions/flow" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

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

payload = "{}"

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

conn.request("POST", "/baseUrl/:realm/authentication/flows/:flowAlias/executions/flow", payload, headers)

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

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

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow"

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

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

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

url <- "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow"

payload <- "{}"

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}}/:realm/authentication/flows/:flowAlias/executions/flow")

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 = "{}"

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/:realm/authentication/flows/:flowAlias/executions/flow') do |req|
  req.body = "{}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow";

    let payload = json!({});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions/flow
import Foundation

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

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

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

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

dataTask.resume()
POST Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object
{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy");

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

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

(client/post "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/:realm/authentication/flows/:flowAlias/copy"),
    Content = new StringContent("{}")
    {
        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}}/:realm/authentication/flows/:flowAlias/copy");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy"

	payload := strings.NewReader("{}")

	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/:realm/authentication/flows/:flowAlias/copy HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

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

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

xhr.open('POST', '{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/:realm/authentication/flows/:flowAlias/copy',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy")
  .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/:realm/authentication/flows/:flowAlias/copy',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/:realm/authentication/flows/:flowAlias/copy');

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

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

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}}/:realm/authentication/flows/:flowAlias/copy',
  headers: {'content-type': 'application/json'},
  data: {}
};

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

const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy"]
                                                       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}}/:realm/authentication/flows/:flowAlias/copy" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

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

payload = "{}"

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

conn.request("POST", "/baseUrl/:realm/authentication/flows/:flowAlias/copy", payload, headers)

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

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

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy"

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

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

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

url <- "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy"

payload <- "{}"

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}}/:realm/authentication/flows/:flowAlias/copy")

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 = "{}"

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/:realm/authentication/flows/:flowAlias/copy') do |req|
  req.body = "{}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/copy";

    let payload = json!({});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:realm/authentication/flows/:flowAlias/copy \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/:realm/authentication/flows/:flowAlias/copy \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/flows/:flowAlias/copy
import Foundation

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

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

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

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

dataTask.resume()
POST Create a new authentication flow
{{baseUrl}}/:realm/authentication/flows
BODY json

{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/flows");

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  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}");

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

(client/post "{{baseUrl}}/:realm/authentication/flows" {:content-type :json
                                                                        :form-params {:alias ""
                                                                                      :authenticationExecutions [{:authenticator ""
                                                                                                                  :authenticatorConfig ""
                                                                                                                  :authenticatorFlow false
                                                                                                                  :autheticatorFlow false
                                                                                                                  :flowAlias ""
                                                                                                                  :priority 0
                                                                                                                  :requirement ""
                                                                                                                  :userSetupAllowed false}]
                                                                                      :builtIn false
                                                                                      :description ""
                                                                                      :id ""
                                                                                      :providerId ""
                                                                                      :topLevel false}})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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}}/:realm/authentication/flows"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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}}/:realm/authentication/flows");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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/:realm/authentication/flows HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 388

{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/flows")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/flows"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/flows")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  authenticationExecutions: [
    {
      authenticator: '',
      authenticatorConfig: '',
      authenticatorFlow: false,
      autheticatorFlow: false,
      flowAlias: '',
      priority: 0,
      requirement: '',
      userSetupAllowed: false
    }
  ],
  builtIn: false,
  description: '',
  id: '',
  providerId: '',
  topLevel: false
});

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

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

xhr.open('POST', '{{baseUrl}}/:realm/authentication/flows');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    authenticationExecutions: [
      {
        authenticator: '',
        authenticatorConfig: '',
        authenticatorFlow: false,
        autheticatorFlow: false,
        flowAlias: '',
        priority: 0,
        requirement: '',
        userSetupAllowed: false
      }
    ],
    builtIn: false,
    description: '',
    id: '',
    providerId: '',
    topLevel: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/flows';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}'
};

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}}/:realm/authentication/flows',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "authenticationExecutions": [\n    {\n      "authenticator": "",\n      "authenticatorConfig": "",\n      "authenticatorFlow": false,\n      "autheticatorFlow": false,\n      "flowAlias": "",\n      "priority": 0,\n      "requirement": "",\n      "userSetupAllowed": false\n    }\n  ],\n  "builtIn": false,\n  "description": "",\n  "id": "",\n  "providerId": "",\n  "topLevel": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows")
  .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/:realm/authentication/flows',
  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({
  alias: '',
  authenticationExecutions: [
    {
      authenticator: '',
      authenticatorConfig: '',
      authenticatorFlow: false,
      autheticatorFlow: false,
      flowAlias: '',
      priority: 0,
      requirement: '',
      userSetupAllowed: false
    }
  ],
  builtIn: false,
  description: '',
  id: '',
  providerId: '',
  topLevel: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/flows',
  headers: {'content-type': 'application/json'},
  body: {
    alias: '',
    authenticationExecutions: [
      {
        authenticator: '',
        authenticatorConfig: '',
        authenticatorFlow: false,
        autheticatorFlow: false,
        flowAlias: '',
        priority: 0,
        requirement: '',
        userSetupAllowed: false
      }
    ],
    builtIn: false,
    description: '',
    id: '',
    providerId: '',
    topLevel: false
  },
  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}}/:realm/authentication/flows');

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

req.type('json');
req.send({
  alias: '',
  authenticationExecutions: [
    {
      authenticator: '',
      authenticatorConfig: '',
      authenticatorFlow: false,
      autheticatorFlow: false,
      flowAlias: '',
      priority: 0,
      requirement: '',
      userSetupAllowed: false
    }
  ],
  builtIn: false,
  description: '',
  id: '',
  providerId: '',
  topLevel: false
});

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}}/:realm/authentication/flows',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    authenticationExecutions: [
      {
        authenticator: '',
        authenticatorConfig: '',
        authenticatorFlow: false,
        autheticatorFlow: false,
        flowAlias: '',
        priority: 0,
        requirement: '',
        userSetupAllowed: false
      }
    ],
    builtIn: false,
    description: '',
    id: '',
    providerId: '',
    topLevel: false
  }
};

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

const url = '{{baseUrl}}/:realm/authentication/flows';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}'
};

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 = @{ @"alias": @"",
                              @"authenticationExecutions": @[ @{ @"authenticator": @"", @"authenticatorConfig": @"", @"authenticatorFlow": @NO, @"autheticatorFlow": @NO, @"flowAlias": @"", @"priority": @0, @"requirement": @"", @"userSetupAllowed": @NO } ],
                              @"builtIn": @NO,
                              @"description": @"",
                              @"id": @"",
                              @"providerId": @"",
                              @"topLevel": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/flows"]
                                                       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}}/:realm/authentication/flows" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/flows",
  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([
    'alias' => '',
    'authenticationExecutions' => [
        [
                'authenticator' => '',
                'authenticatorConfig' => '',
                'authenticatorFlow' => null,
                'autheticatorFlow' => null,
                'flowAlias' => '',
                'priority' => 0,
                'requirement' => '',
                'userSetupAllowed' => null
        ]
    ],
    'builtIn' => null,
    'description' => '',
    'id' => '',
    'providerId' => '',
    'topLevel' => null
  ]),
  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}}/:realm/authentication/flows', [
  'body' => '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/flows');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'authenticationExecutions' => [
    [
        'authenticator' => '',
        'authenticatorConfig' => '',
        'authenticatorFlow' => null,
        'autheticatorFlow' => null,
        'flowAlias' => '',
        'priority' => 0,
        'requirement' => '',
        'userSetupAllowed' => null
    ]
  ],
  'builtIn' => null,
  'description' => '',
  'id' => '',
  'providerId' => '',
  'topLevel' => null
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'authenticationExecutions' => [
    [
        'authenticator' => '',
        'authenticatorConfig' => '',
        'authenticatorFlow' => null,
        'autheticatorFlow' => null,
        'flowAlias' => '',
        'priority' => 0,
        'requirement' => '',
        'userSetupAllowed' => null
    ]
  ],
  'builtIn' => null,
  'description' => '',
  'id' => '',
  'providerId' => '',
  'topLevel' => null
]));
$request->setRequestUrl('{{baseUrl}}/:realm/authentication/flows');
$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}}/:realm/authentication/flows' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/flows' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}'
import http.client

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

payload = "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}"

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

conn.request("POST", "/baseUrl/:realm/authentication/flows", payload, headers)

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

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

url = "{{baseUrl}}/:realm/authentication/flows"

payload = {
    "alias": "",
    "authenticationExecutions": [
        {
            "authenticator": "",
            "authenticatorConfig": "",
            "authenticatorFlow": False,
            "autheticatorFlow": False,
            "flowAlias": "",
            "priority": 0,
            "requirement": "",
            "userSetupAllowed": False
        }
    ],
    "builtIn": False,
    "description": "",
    "id": "",
    "providerId": "",
    "topLevel": False
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/:realm/authentication/flows"

payload <- "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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}}/:realm/authentication/flows")

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  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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/:realm/authentication/flows') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}"
end

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

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

    let payload = json!({
        "alias": "",
        "authenticationExecutions": (
            json!({
                "authenticator": "",
                "authenticatorConfig": "",
                "authenticatorFlow": false,
                "autheticatorFlow": false,
                "flowAlias": "",
                "priority": 0,
                "requirement": "",
                "userSetupAllowed": false
            })
        ),
        "builtIn": false,
        "description": "",
        "id": "",
        "providerId": "",
        "topLevel": false
    });

    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}}/:realm/authentication/flows \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}'
echo '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}' |  \
  http POST {{baseUrl}}/:realm/authentication/flows \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "authenticationExecutions": [\n    {\n      "authenticator": "",\n      "authenticatorConfig": "",\n      "authenticatorFlow": false,\n      "autheticatorFlow": false,\n      "flowAlias": "",\n      "priority": 0,\n      "requirement": "",\n      "userSetupAllowed": false\n    }\n  ],\n  "builtIn": false,\n  "description": "",\n  "id": "",\n  "providerId": "",\n  "topLevel": false\n}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/flows
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "authenticationExecutions": [
    [
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    ]
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
] as [String : Any]

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

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

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

dataTask.resume()
DELETE Delete an authentication flow
{{baseUrl}}/:realm/authentication/flows/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/delete "{{baseUrl}}/:realm/authentication/flows/:id")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows/:id"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/:id"

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

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

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

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

}
DELETE /baseUrl/:realm/authentication/flows/:id HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:id")
  .delete(null)
  .build();

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

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

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

xhr.open('DELETE', '{{baseUrl}}/:realm/authentication/flows/:id');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/flows/:id'
};

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

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

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

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

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/flows/:id',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/flows/:id'
};

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

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/flows/:id'
};

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

const url = '{{baseUrl}}/:realm/authentication/flows/:id';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/flows/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/:realm/authentication/flows/:id" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/authentication/flows/:id');

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

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

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

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

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

conn.request("DELETE", "/baseUrl/:realm/authentication/flows/:id")

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

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

url = "{{baseUrl}}/:realm/authentication/flows/:id"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:realm/authentication/flows/:id"

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

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

url = URI("{{baseUrl}}/:realm/authentication/flows/:id")

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

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

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

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

response = conn.delete('/baseUrl/:realm/authentication/flows/:id') do |req|
end

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

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

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

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

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

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

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

dataTask.resume()
DELETE Delete authenticator configuration
{{baseUrl}}/:realm/authentication/config/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/delete "{{baseUrl}}/:realm/authentication/config/:id")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/config/:id"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/config/:id"

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

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

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

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

}
DELETE /baseUrl/:realm/authentication/config/:id HTTP/1.1
Host: example.com

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

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

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/config/:id")
  .delete(null)
  .build();

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

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

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

xhr.open('DELETE', '{{baseUrl}}/:realm/authentication/config/:id');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/config/:id'
};

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

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

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

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

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/config/:id',
  headers: {}
};

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/config/:id'
};

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

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/config/:id'
};

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

const url = '{{baseUrl}}/:realm/authentication/config/:id';
const options = {method: 'DELETE'};

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/config/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

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

let uri = Uri.of_string "{{baseUrl}}/:realm/authentication/config/:id" in

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

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/authentication/config/:id');

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

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

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

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

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

conn.request("DELETE", "/baseUrl/:realm/authentication/config/:id")

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

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

url = "{{baseUrl}}/:realm/authentication/config/:id"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:realm/authentication/config/:id"

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

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

url = URI("{{baseUrl}}/:realm/authentication/config/:id")

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

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

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

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

response = conn.delete('/baseUrl/:realm/authentication/config/:id') do |req|
end

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

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

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

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

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

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

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

dataTask.resume()
DELETE Delete execution
{{baseUrl}}/:realm/authentication/executions/:executionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/executions/:executionId");

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

(client/delete "{{baseUrl}}/:realm/authentication/executions/:executionId")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/executions/:executionId"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/executions/:executionId"

	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/:realm/authentication/executions/:executionId HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/executions/:executionId'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions/:executionId")
  .delete(null)
  .build()

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

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

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

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

const req = unirest('DELETE', '{{baseUrl}}/:realm/authentication/executions/:executionId');

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}}/:realm/authentication/executions/:executionId'
};

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

const url = '{{baseUrl}}/:realm/authentication/executions/:executionId';
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}}/:realm/authentication/executions/:executionId"]
                                                       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}}/:realm/authentication/executions/:executionId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/executions/:executionId');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

conn.request("DELETE", "/baseUrl/:realm/authentication/executions/:executionId")

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

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

url = "{{baseUrl}}/:realm/authentication/executions/:executionId"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:realm/authentication/executions/:executionId"

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

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

url = URI("{{baseUrl}}/:realm/authentication/executions/:executionId")

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/:realm/authentication/executions/:executionId') do |req|
end

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

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

    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}}/:realm/authentication/executions/:executionId
http DELETE {{baseUrl}}/:realm/authentication/executions/:executionId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/authentication/executions/:executionId
import Foundation

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

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

dataTask.resume()
DELETE Delete required action
{{baseUrl}}/:realm/authentication/required-actions/:alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/required-actions/:alias");

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

(client/delete "{{baseUrl}}/:realm/authentication/required-actions/:alias")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/required-actions/:alias"

	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/:realm/authentication/required-actions/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/authentication/required-actions/:alias'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .delete(null)
  .build()

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

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

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

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

const req = unirest('DELETE', '{{baseUrl}}/:realm/authentication/required-actions/:alias');

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}}/:realm/authentication/required-actions/:alias'
};

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

const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias';
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}}/:realm/authentication/required-actions/:alias"]
                                                       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}}/:realm/authentication/required-actions/:alias" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/:realm/authentication/required-actions/:alias")

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

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

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias"

response = requests.delete(url)

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

url <- "{{baseUrl}}/:realm/authentication/required-actions/:alias"

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

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

url = URI("{{baseUrl}}/:realm/authentication/required-actions/:alias")

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/:realm/authentication/required-actions/:alias') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/required-actions/:alias";

    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}}/:realm/authentication/required-actions/:alias
http DELETE {{baseUrl}}/:realm/authentication/required-actions/:alias
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/authentication/required-actions/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/required-actions/:alias")! 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 Get Single Execution
{{baseUrl}}/:realm/authentication/executions/:executionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/executions/:executionId");

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

(client/get "{{baseUrl}}/:realm/authentication/executions/:executionId")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/executions/:executionId"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/executions/:executionId"

	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/:realm/authentication/executions/:executionId HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/executions/:executionId'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions/:executionId")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/executions/:executionId');

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}}/:realm/authentication/executions/:executionId'
};

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

const url = '{{baseUrl}}/:realm/authentication/executions/:executionId';
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}}/:realm/authentication/executions/:executionId"]
                                                       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}}/:realm/authentication/executions/:executionId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/executions/:executionId');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/executions/:executionId")

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

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

url = "{{baseUrl}}/:realm/authentication/executions/:executionId"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/executions/:executionId"

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

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

url = URI("{{baseUrl}}/:realm/authentication/executions/:executionId")

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/:realm/authentication/executions/:executionId') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/:realm/authentication/executions/:executionId
http GET {{baseUrl}}/:realm/authentication/executions/:executionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/executions/:executionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/executions/:executionId")! 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 Get authentication executions for a flow
{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions");

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

(client/get "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"

	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/:realm/authentication/flows/:flowAlias/executions HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions');

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}}/:realm/authentication/flows/:flowAlias/executions'
};

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

const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions';
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}}/:realm/authentication/flows/:flowAlias/executions"]
                                                       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}}/:realm/authentication/flows/:flowAlias/executions" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:realm/authentication/flows/:flowAlias/executions")

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

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

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"

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

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

url = URI("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")

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/:realm/authentication/flows/:flowAlias/executions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions";

    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}}/:realm/authentication/flows/:flowAlias/executions
http GET {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")! 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 Get authentication flow for id
{{baseUrl}}/:realm/authentication/flows/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/:realm/authentication/flows/:id")
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/: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/:realm/authentication/flows/:id HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/flows/:id'
};

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

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

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

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

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

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

const url = '{{baseUrl}}/:realm/authentication/flows/: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}}/:realm/authentication/flows/: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}}/:realm/authentication/flows/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/flows/:id")

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

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

url = "{{baseUrl}}/:realm/authentication/flows/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/flows/:id"

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

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

url = URI("{{baseUrl}}/:realm/authentication/flows/: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/:realm/authentication/flows/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/flows/: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 Get authentication flows Returns a list of authentication flows.
{{baseUrl}}/:realm/authentication/flows
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/flows");

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

(client/get "{{baseUrl}}/:realm/authentication/flows")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows"

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

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/:realm/authentication/flows'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/flows');

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}}/:realm/authentication/flows'};

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/flows');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/flows")

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

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

url = "{{baseUrl}}/:realm/authentication/flows"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/flows"

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

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

url = URI("{{baseUrl}}/:realm/authentication/flows")

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/:realm/authentication/flows') do |req|
end

puts response.status
puts response.body
use reqwest;

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/flows")! 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 Get authenticator configuration
{{baseUrl}}/:realm/authentication/config/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/:realm/authentication/config/:id")
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/config/: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/:realm/authentication/config/:id HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/config/:id'
};

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

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

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

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

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

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

const url = '{{baseUrl}}/:realm/authentication/config/: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}}/:realm/authentication/config/: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}}/:realm/authentication/config/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/config/:id")

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

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

url = "{{baseUrl}}/:realm/authentication/config/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/config/:id"

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

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

url = URI("{{baseUrl}}/:realm/authentication/config/: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/:realm/authentication/config/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/config/: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 Get authenticator providers Returns a list of authenticator providers.
{{baseUrl}}/:realm/authentication/authenticator-providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/authenticator-providers");

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

(client/get "{{baseUrl}}/:realm/authentication/authenticator-providers")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/authenticator-providers"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/authenticator-providers"

	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/:realm/authentication/authenticator-providers HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/authenticator-providers'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/authenticator-providers")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/authenticator-providers');

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}}/:realm/authentication/authenticator-providers'
};

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

const url = '{{baseUrl}}/:realm/authentication/authenticator-providers';
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}}/:realm/authentication/authenticator-providers"]
                                                       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}}/:realm/authentication/authenticator-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/authenticator-providers');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/authenticator-providers")

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

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

url = "{{baseUrl}}/:realm/authentication/authenticator-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/authenticator-providers"

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

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

url = URI("{{baseUrl}}/:realm/authentication/authenticator-providers")

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/:realm/authentication/authenticator-providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/authenticator-providers";

    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}}/:realm/authentication/authenticator-providers
http GET {{baseUrl}}/:realm/authentication/authenticator-providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/authenticator-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/authenticator-providers")! 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 Get authenticator provider’s configuration description
{{baseUrl}}/:realm/authentication/config-description/:providerId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/config-description/:providerId");

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

(client/get "{{baseUrl}}/:realm/authentication/config-description/:providerId")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/config-description/:providerId"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/config-description/:providerId"

	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/:realm/authentication/config-description/:providerId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/authentication/config-description/:providerId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/config-description/:providerId'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/config-description/:providerId")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/config-description/:providerId');

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}}/:realm/authentication/config-description/:providerId'
};

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

const url = '{{baseUrl}}/:realm/authentication/config-description/:providerId';
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}}/:realm/authentication/config-description/:providerId"]
                                                       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}}/:realm/authentication/config-description/:providerId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/config-description/:providerId');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/config-description/:providerId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/config-description/:providerId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/config-description/:providerId' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:realm/authentication/config-description/:providerId")

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

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

url = "{{baseUrl}}/:realm/authentication/config-description/:providerId"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/config-description/:providerId"

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

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

url = URI("{{baseUrl}}/:realm/authentication/config-description/:providerId")

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/:realm/authentication/config-description/:providerId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/config-description/:providerId";

    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}}/:realm/authentication/config-description/:providerId
http GET {{baseUrl}}/:realm/authentication/config-description/:providerId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/config-description/:providerId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/config-description/:providerId")! 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 Get client authenticator providers Returns a list of client authenticator providers.
{{baseUrl}}/:realm/authentication/client-authenticator-providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/client-authenticator-providers");

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

(client/get "{{baseUrl}}/:realm/authentication/client-authenticator-providers")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/client-authenticator-providers"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/client-authenticator-providers"

	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/:realm/authentication/client-authenticator-providers HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/client-authenticator-providers'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/client-authenticator-providers")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/client-authenticator-providers');

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}}/:realm/authentication/client-authenticator-providers'
};

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

const url = '{{baseUrl}}/:realm/authentication/client-authenticator-providers';
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}}/:realm/authentication/client-authenticator-providers"]
                                                       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}}/:realm/authentication/client-authenticator-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/client-authenticator-providers');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/client-authenticator-providers")

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

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

url = "{{baseUrl}}/:realm/authentication/client-authenticator-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/client-authenticator-providers"

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

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

url = URI("{{baseUrl}}/:realm/authentication/client-authenticator-providers")

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/:realm/authentication/client-authenticator-providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/client-authenticator-providers";

    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}}/:realm/authentication/client-authenticator-providers
http GET {{baseUrl}}/:realm/authentication/client-authenticator-providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/client-authenticator-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/client-authenticator-providers")! 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 Get configuration descriptions for all clients
{{baseUrl}}/:realm/authentication/per-client-config-description
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/per-client-config-description");

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

(client/get "{{baseUrl}}/:realm/authentication/per-client-config-description")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/per-client-config-description"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/per-client-config-description"

	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/:realm/authentication/per-client-config-description HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/authentication/per-client-config-description")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/per-client-config-description'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/per-client-config-description")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/per-client-config-description');

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/per-client-config-description'
};

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

const url = '{{baseUrl}}/:realm/authentication/per-client-config-description';
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}}/:realm/authentication/per-client-config-description"]
                                                       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}}/:realm/authentication/per-client-config-description" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/per-client-config-description');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/per-client-config-description');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/per-client-config-description' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/per-client-config-description' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:realm/authentication/per-client-config-description")

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

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

url = "{{baseUrl}}/:realm/authentication/per-client-config-description"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/per-client-config-description"

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

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

url = URI("{{baseUrl}}/:realm/authentication/per-client-config-description")

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/:realm/authentication/per-client-config-description') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/per-client-config-description";

    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}}/:realm/authentication/per-client-config-description
http GET {{baseUrl}}/:realm/authentication/per-client-config-description
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/per-client-config-description
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/per-client-config-description")! 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 Get form action providers Returns a list of form action providers.
{{baseUrl}}/:realm/authentication/form-action-providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/form-action-providers");

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

(client/get "{{baseUrl}}/:realm/authentication/form-action-providers")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/form-action-providers"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/form-action-providers"

	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/:realm/authentication/form-action-providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/authentication/form-action-providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/form-action-providers'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/form-action-providers")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/form-action-providers');

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}}/:realm/authentication/form-action-providers'
};

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

const url = '{{baseUrl}}/:realm/authentication/form-action-providers';
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}}/:realm/authentication/form-action-providers"]
                                                       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}}/:realm/authentication/form-action-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/form-action-providers');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/form-action-providers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/form-action-providers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/form-action-providers' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:realm/authentication/form-action-providers")

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

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

url = "{{baseUrl}}/:realm/authentication/form-action-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/form-action-providers"

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

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

url = URI("{{baseUrl}}/:realm/authentication/form-action-providers")

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/:realm/authentication/form-action-providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/form-action-providers";

    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}}/:realm/authentication/form-action-providers
http GET {{baseUrl}}/:realm/authentication/form-action-providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/form-action-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/form-action-providers")! 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 Get form providers Returns a list of form providers.
{{baseUrl}}/:realm/authentication/form-providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/form-providers");

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

(client/get "{{baseUrl}}/:realm/authentication/form-providers")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/form-providers"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/form-providers"

	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/:realm/authentication/form-providers HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/form-providers'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/form-providers")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/form-providers');

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}}/:realm/authentication/form-providers'
};

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

const url = '{{baseUrl}}/:realm/authentication/form-providers';
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}}/:realm/authentication/form-providers"]
                                                       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}}/:realm/authentication/form-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/form-providers');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/form-providers")

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

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

url = "{{baseUrl}}/:realm/authentication/form-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/form-providers"

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

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

url = URI("{{baseUrl}}/:realm/authentication/form-providers")

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/:realm/authentication/form-providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/form-providers";

    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}}/:realm/authentication/form-providers
http GET {{baseUrl}}/:realm/authentication/form-providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/form-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/form-providers")! 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 Get required action for alias
{{baseUrl}}/:realm/authentication/required-actions/:alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/required-actions/:alias");

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

(client/get "{{baseUrl}}/:realm/authentication/required-actions/:alias")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/required-actions/:alias"

	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/:realm/authentication/required-actions/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/required-actions/:alias'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/required-actions/:alias');

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}}/:realm/authentication/required-actions/:alias'
};

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

const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias';
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}}/:realm/authentication/required-actions/:alias"]
                                                       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}}/:realm/authentication/required-actions/:alias" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:realm/authentication/required-actions/:alias")

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

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

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/required-actions/:alias"

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

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

url = URI("{{baseUrl}}/:realm/authentication/required-actions/:alias")

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/:realm/authentication/required-actions/:alias') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/required-actions/:alias";

    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}}/:realm/authentication/required-actions/:alias
http GET {{baseUrl}}/:realm/authentication/required-actions/:alias
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/required-actions/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/required-actions/:alias")! 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 Get required actions Returns a list of required actions.
{{baseUrl}}/:realm/authentication/required-actions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/required-actions");

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

(client/get "{{baseUrl}}/:realm/authentication/required-actions")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/required-actions"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/required-actions"

	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/:realm/authentication/required-actions HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/required-actions'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/required-actions")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/required-actions');

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}}/:realm/authentication/required-actions'
};

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

const url = '{{baseUrl}}/:realm/authentication/required-actions';
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}}/:realm/authentication/required-actions"]
                                                       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}}/:realm/authentication/required-actions" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/required-actions');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/:realm/authentication/required-actions")

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

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

url = "{{baseUrl}}/:realm/authentication/required-actions"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/required-actions"

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

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

url = URI("{{baseUrl}}/:realm/authentication/required-actions")

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/:realm/authentication/required-actions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/required-actions";

    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}}/:realm/authentication/required-actions
http GET {{baseUrl}}/:realm/authentication/required-actions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/required-actions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/required-actions")! 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 Get unregistered required actions Returns a list of unregistered required actions.
{{baseUrl}}/:realm/authentication/unregistered-required-actions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/unregistered-required-actions");

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

(client/get "{{baseUrl}}/:realm/authentication/unregistered-required-actions")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/unregistered-required-actions"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/unregistered-required-actions"

	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/:realm/authentication/unregistered-required-actions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/authentication/unregistered-required-actions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/authentication/unregistered-required-actions'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/unregistered-required-actions")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/:realm/authentication/unregistered-required-actions');

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}}/:realm/authentication/unregistered-required-actions'
};

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

const url = '{{baseUrl}}/:realm/authentication/unregistered-required-actions';
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}}/:realm/authentication/unregistered-required-actions"]
                                                       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}}/:realm/authentication/unregistered-required-actions" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/unregistered-required-actions');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/unregistered-required-actions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/unregistered-required-actions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/unregistered-required-actions' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/:realm/authentication/unregistered-required-actions")

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

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

url = "{{baseUrl}}/:realm/authentication/unregistered-required-actions"

response = requests.get(url)

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

url <- "{{baseUrl}}/:realm/authentication/unregistered-required-actions"

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

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

url = URI("{{baseUrl}}/:realm/authentication/unregistered-required-actions")

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/:realm/authentication/unregistered-required-actions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/unregistered-required-actions";

    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}}/:realm/authentication/unregistered-required-actions
http GET {{baseUrl}}/:realm/authentication/unregistered-required-actions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/authentication/unregistered-required-actions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/unregistered-required-actions")! 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 Lower execution’s priority
{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority");

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

(client/post "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority"

	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/:realm/authentication/executions/:executionId/lower-priority HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority"))
    .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}}/:realm/authentication/executions/:executionId/lower-priority")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority")
  .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}}/:realm/authentication/executions/:executionId/lower-priority');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority';
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}}/:realm/authentication/executions/:executionId/lower-priority',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/executions/:executionId/lower-priority',
  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}}/:realm/authentication/executions/:executionId/lower-priority'
};

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

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

const req = unirest('POST', '{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority');

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}}/:realm/authentication/executions/:executionId/lower-priority'
};

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

const url = '{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority';
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}}/:realm/authentication/executions/:executionId/lower-priority"]
                                                       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}}/:realm/authentication/executions/:executionId/lower-priority" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority",
  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}}/:realm/authentication/executions/:executionId/lower-priority');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/:realm/authentication/executions/:executionId/lower-priority")

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

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

url = "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority"

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

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

url = URI("{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority")

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/:realm/authentication/executions/:executionId/lower-priority') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority";

    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}}/:realm/authentication/executions/:executionId/lower-priority
http POST {{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/executions/:executionId/lower-priority")! 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 Lower required action’s priority
{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority");

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

(client/post "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority"

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}}/:realm/authentication/required-actions/:alias/lower-priority"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority"

	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/:realm/authentication/required-actions/:alias/lower-priority HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority"))
    .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}}/:realm/authentication/required-actions/:alias/lower-priority")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority")
  .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}}/:realm/authentication/required-actions/:alias/lower-priority');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority';
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}}/:realm/authentication/required-actions/:alias/lower-priority',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/required-actions/:alias/lower-priority',
  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}}/:realm/authentication/required-actions/:alias/lower-priority'
};

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

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

const req = unirest('POST', '{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority');

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}}/:realm/authentication/required-actions/:alias/lower-priority'
};

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

const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority';
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}}/:realm/authentication/required-actions/:alias/lower-priority"]
                                                       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}}/:realm/authentication/required-actions/:alias/lower-priority" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority",
  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}}/:realm/authentication/required-actions/:alias/lower-priority');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/:realm/authentication/required-actions/:alias/lower-priority")

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

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

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority"

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

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

url = URI("{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority")

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/:realm/authentication/required-actions/:alias/lower-priority') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority";

    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}}/:realm/authentication/required-actions/:alias/lower-priority
http POST {{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/required-actions/:alias/lower-priority")! 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 Raise execution’s priority
{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority");

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

(client/post "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority"

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

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority"

	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/:realm/authentication/executions/:executionId/raise-priority HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority"))
    .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}}/:realm/authentication/executions/:executionId/raise-priority")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority")
  .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}}/:realm/authentication/executions/:executionId/raise-priority');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority';
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}}/:realm/authentication/executions/:executionId/raise-priority',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/executions/:executionId/raise-priority',
  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}}/:realm/authentication/executions/:executionId/raise-priority'
};

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

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

const req = unirest('POST', '{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority');

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}}/:realm/authentication/executions/:executionId/raise-priority'
};

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

const url = '{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority';
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}}/:realm/authentication/executions/:executionId/raise-priority"]
                                                       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}}/:realm/authentication/executions/:executionId/raise-priority" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority",
  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}}/:realm/authentication/executions/:executionId/raise-priority');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/:realm/authentication/executions/:executionId/raise-priority")

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

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

url = "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority"

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

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

url = URI("{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority")

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/:realm/authentication/executions/:executionId/raise-priority') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority";

    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}}/:realm/authentication/executions/:executionId/raise-priority
http POST {{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/executions/:executionId/raise-priority")! 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 Raise required action’s priority
{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority");

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

(client/post "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority")
require "http/client"

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority"

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}}/:realm/authentication/required-actions/:alias/raise-priority"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority"

	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/:realm/authentication/required-actions/:alias/raise-priority HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority"))
    .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}}/:realm/authentication/required-actions/:alias/raise-priority")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority")
  .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}}/:realm/authentication/required-actions/:alias/raise-priority');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority';
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}}/:realm/authentication/required-actions/:alias/raise-priority',
  method: 'POST',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority")
  .post(null)
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/required-actions/:alias/raise-priority',
  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}}/:realm/authentication/required-actions/:alias/raise-priority'
};

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

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

const req = unirest('POST', '{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority');

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}}/:realm/authentication/required-actions/:alias/raise-priority'
};

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

const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority';
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}}/:realm/authentication/required-actions/:alias/raise-priority"]
                                                       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}}/:realm/authentication/required-actions/:alias/raise-priority" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority",
  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}}/:realm/authentication/required-actions/:alias/raise-priority');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority');
$request->setMethod(HTTP_METH_POST);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/:realm/authentication/required-actions/:alias/raise-priority")

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

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

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority"

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

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

url = URI("{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority")

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/:realm/authentication/required-actions/:alias/raise-priority') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority";

    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}}/:realm/authentication/required-actions/:alias/raise-priority
http POST {{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/required-actions/:alias/raise-priority")! 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 Register a new required actions
{{baseUrl}}/:realm/authentication/register-required-action
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/register-required-action");

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

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

(client/post "{{baseUrl}}/:realm/authentication/register-required-action" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/register-required-action"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/:realm/authentication/register-required-action"),
    Content = new StringContent("{}")
    {
        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}}/:realm/authentication/register-required-action");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/register-required-action"

	payload := strings.NewReader("{}")

	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/:realm/authentication/register-required-action HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/register-required-action")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/register-required-action")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

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

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

xhr.open('POST', '{{baseUrl}}/:realm/authentication/register-required-action');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/register-required-action',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/register-required-action';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/:realm/authentication/register-required-action',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/register-required-action")
  .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/:realm/authentication/register-required-action',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/register-required-action',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/:realm/authentication/register-required-action');

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

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

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}}/:realm/authentication/register-required-action',
  headers: {'content-type': 'application/json'},
  data: {}
};

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

const url = '{{baseUrl}}/:realm/authentication/register-required-action';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/register-required-action"]
                                                       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}}/:realm/authentication/register-required-action" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/register-required-action');
$request->setMethod(HTTP_METH_POST);

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

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

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

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

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

payload = "{}"

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

conn.request("POST", "/baseUrl/:realm/authentication/register-required-action", payload, headers)

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

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

url = "{{baseUrl}}/:realm/authentication/register-required-action"

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

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

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

url <- "{{baseUrl}}/:realm/authentication/register-required-action"

payload <- "{}"

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}}/:realm/authentication/register-required-action")

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 = "{}"

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/:realm/authentication/register-required-action') do |req|
  req.body = "{}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/register-required-action";

    let payload = json!({});

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:realm/authentication/register-required-action \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/:realm/authentication/register-required-action \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/register-required-action
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/register-required-action")! 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()
PUT Update an authentication flow
{{baseUrl}}/:realm/authentication/flows/:id
BODY json

{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}");

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

(client/put "{{baseUrl}}/:realm/authentication/flows/:id" {:content-type :json
                                                                           :form-params {:alias ""
                                                                                         :authenticationExecutions [{:authenticator ""
                                                                                                                     :authenticatorConfig ""
                                                                                                                     :authenticatorFlow false
                                                                                                                     :autheticatorFlow false
                                                                                                                     :flowAlias ""
                                                                                                                     :priority 0
                                                                                                                     :requirement ""
                                                                                                                     :userSetupAllowed false}]
                                                                                         :builtIn false
                                                                                         :description ""
                                                                                         :id ""
                                                                                         :providerId ""
                                                                                         :topLevel false}})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/authentication/flows/:id"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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}}/:realm/authentication/flows/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/:id"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}")

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

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

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

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

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

}
PUT /baseUrl/:realm/authentication/flows/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 388

{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/authentication/flows/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/flows/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/authentication/flows/:id")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  authenticationExecutions: [
    {
      authenticator: '',
      authenticatorConfig: '',
      authenticatorFlow: false,
      autheticatorFlow: false,
      flowAlias: '',
      priority: 0,
      requirement: '',
      userSetupAllowed: false
    }
  ],
  builtIn: false,
  description: '',
  id: '',
  providerId: '',
  topLevel: false
});

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

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

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/flows/:id',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    authenticationExecutions: [
      {
        authenticator: '',
        authenticatorConfig: '',
        authenticatorFlow: false,
        autheticatorFlow: false,
        flowAlias: '',
        priority: 0,
        requirement: '',
        userSetupAllowed: false
      }
    ],
    builtIn: false,
    description: '',
    id: '',
    providerId: '',
    topLevel: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/flows/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}'
};

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}}/:realm/authentication/flows/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "authenticationExecutions": [\n    {\n      "authenticator": "",\n      "authenticatorConfig": "",\n      "authenticatorFlow": false,\n      "autheticatorFlow": false,\n      "flowAlias": "",\n      "priority": 0,\n      "requirement": "",\n      "userSetupAllowed": false\n    }\n  ],\n  "builtIn": false,\n  "description": "",\n  "id": "",\n  "providerId": "",\n  "topLevel": false\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/flows/:id',
  headers: {
    'content-type': 'application/json'
  }
};

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

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

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

req.write(JSON.stringify({
  alias: '',
  authenticationExecutions: [
    {
      authenticator: '',
      authenticatorConfig: '',
      authenticatorFlow: false,
      autheticatorFlow: false,
      flowAlias: '',
      priority: 0,
      requirement: '',
      userSetupAllowed: false
    }
  ],
  builtIn: false,
  description: '',
  id: '',
  providerId: '',
  topLevel: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/flows/:id',
  headers: {'content-type': 'application/json'},
  body: {
    alias: '',
    authenticationExecutions: [
      {
        authenticator: '',
        authenticatorConfig: '',
        authenticatorFlow: false,
        autheticatorFlow: false,
        flowAlias: '',
        priority: 0,
        requirement: '',
        userSetupAllowed: false
      }
    ],
    builtIn: false,
    description: '',
    id: '',
    providerId: '',
    topLevel: false
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/:realm/authentication/flows/:id');

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

req.type('json');
req.send({
  alias: '',
  authenticationExecutions: [
    {
      authenticator: '',
      authenticatorConfig: '',
      authenticatorFlow: false,
      autheticatorFlow: false,
      flowAlias: '',
      priority: 0,
      requirement: '',
      userSetupAllowed: false
    }
  ],
  builtIn: false,
  description: '',
  id: '',
  providerId: '',
  topLevel: false
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/flows/:id',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    authenticationExecutions: [
      {
        authenticator: '',
        authenticatorConfig: '',
        authenticatorFlow: false,
        autheticatorFlow: false,
        flowAlias: '',
        priority: 0,
        requirement: '',
        userSetupAllowed: false
      }
    ],
    builtIn: false,
    description: '',
    id: '',
    providerId: '',
    topLevel: false
  }
};

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

const url = '{{baseUrl}}/:realm/authentication/flows/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}'
};

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 = @{ @"alias": @"",
                              @"authenticationExecutions": @[ @{ @"authenticator": @"", @"authenticatorConfig": @"", @"authenticatorFlow": @NO, @"autheticatorFlow": @NO, @"flowAlias": @"", @"priority": @0, @"requirement": @"", @"userSetupAllowed": @NO } ],
                              @"builtIn": @NO,
                              @"description": @"",
                              @"id": @"",
                              @"providerId": @"",
                              @"topLevel": @NO };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/flows/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/:realm/authentication/flows/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/flows/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'alias' => '',
    'authenticationExecutions' => [
        [
                'authenticator' => '',
                'authenticatorConfig' => '',
                'authenticatorFlow' => null,
                'autheticatorFlow' => null,
                'flowAlias' => '',
                'priority' => 0,
                'requirement' => '',
                'userSetupAllowed' => null
        ]
    ],
    'builtIn' => null,
    'description' => '',
    'id' => '',
    'providerId' => '',
    'topLevel' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/authentication/flows/:id', [
  'body' => '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'authenticationExecutions' => [
    [
        'authenticator' => '',
        'authenticatorConfig' => '',
        'authenticatorFlow' => null,
        'autheticatorFlow' => null,
        'flowAlias' => '',
        'priority' => 0,
        'requirement' => '',
        'userSetupAllowed' => null
    ]
  ],
  'builtIn' => null,
  'description' => '',
  'id' => '',
  'providerId' => '',
  'topLevel' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'authenticationExecutions' => [
    [
        'authenticator' => '',
        'authenticatorConfig' => '',
        'authenticatorFlow' => null,
        'autheticatorFlow' => null,
        'flowAlias' => '',
        'priority' => 0,
        'requirement' => '',
        'userSetupAllowed' => null
    ]
  ],
  'builtIn' => null,
  'description' => '',
  'id' => '',
  'providerId' => '',
  'topLevel' => null
]));
$request->setRequestUrl('{{baseUrl}}/:realm/authentication/flows/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/flows/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/flows/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/authentication/flows/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/authentication/flows/:id"

payload = {
    "alias": "",
    "authenticationExecutions": [
        {
            "authenticator": "",
            "authenticatorConfig": "",
            "authenticatorFlow": False,
            "autheticatorFlow": False,
            "flowAlias": "",
            "priority": 0,
            "requirement": "",
            "userSetupAllowed": False
        }
    ],
    "builtIn": False,
    "description": "",
    "id": "",
    "providerId": "",
    "topLevel": False
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/authentication/flows/:id"

payload <- "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/authentication/flows/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/authentication/flows/:id') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"authenticationExecutions\": [\n    {\n      \"authenticator\": \"\",\n      \"authenticatorConfig\": \"\",\n      \"authenticatorFlow\": false,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"priority\": 0,\n      \"requirement\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ],\n  \"builtIn\": false,\n  \"description\": \"\",\n  \"id\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false\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}}/:realm/authentication/flows/:id";

    let payload = json!({
        "alias": "",
        "authenticationExecutions": (
            json!({
                "authenticator": "",
                "authenticatorConfig": "",
                "authenticatorFlow": false,
                "autheticatorFlow": false,
                "flowAlias": "",
                "priority": 0,
                "requirement": "",
                "userSetupAllowed": false
            })
        ),
        "builtIn": false,
        "description": "",
        "id": "",
        "providerId": "",
        "topLevel": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/authentication/flows/:id \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}'
echo '{
  "alias": "",
  "authenticationExecutions": [
    {
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    }
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
}' |  \
  http PUT {{baseUrl}}/:realm/authentication/flows/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "authenticationExecutions": [\n    {\n      "authenticator": "",\n      "authenticatorConfig": "",\n      "authenticatorFlow": false,\n      "autheticatorFlow": false,\n      "flowAlias": "",\n      "priority": 0,\n      "requirement": "",\n      "userSetupAllowed": false\n    }\n  ],\n  "builtIn": false,\n  "description": "",\n  "id": "",\n  "providerId": "",\n  "topLevel": false\n}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/flows/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "authenticationExecutions": [
    [
      "authenticator": "",
      "authenticatorConfig": "",
      "authenticatorFlow": false,
      "autheticatorFlow": false,
      "flowAlias": "",
      "priority": 0,
      "requirement": "",
      "userSetupAllowed": false
    ]
  ],
  "builtIn": false,
  "description": "",
  "id": "",
  "providerId": "",
  "topLevel": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/flows/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update authentication executions of a flow
{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions
BODY json

{
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions");

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  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions" {:content-type :json
                                                                                             :form-params {:alias ""
                                                                                                           :authenticationConfig ""
                                                                                                           :authenticationFlow false
                                                                                                           :configurable false
                                                                                                           :displayName ""
                                                                                                           :flowId ""
                                                                                                           :id ""
                                                                                                           :index 0
                                                                                                           :level 0
                                                                                                           :providerId ""
                                                                                                           :requirement ""
                                                                                                           :requirementChoices []}})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\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}}/:realm/authentication/flows/:flowAlias/executions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/authentication/flows/:flowAlias/executions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 249

{
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\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  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  authenticationConfig: '',
  authenticationFlow: false,
  configurable: false,
  displayName: '',
  flowId: '',
  id: '',
  index: 0,
  level: 0,
  providerId: '',
  requirement: '',
  requirementChoices: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    authenticationConfig: '',
    authenticationFlow: false,
    configurable: false,
    displayName: '',
    flowId: '',
    id: '',
    index: 0,
    level: 0,
    providerId: '',
    requirement: '',
    requirementChoices: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","authenticationConfig":"","authenticationFlow":false,"configurable":false,"displayName":"","flowId":"","id":"","index":0,"level":0,"providerId":"","requirement":"","requirementChoices":[]}'
};

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}}/:realm/authentication/flows/:flowAlias/executions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "authenticationConfig": "",\n  "authenticationFlow": false,\n  "configurable": false,\n  "displayName": "",\n  "flowId": "",\n  "id": "",\n  "index": 0,\n  "level": 0,\n  "providerId": "",\n  "requirement": "",\n  "requirementChoices": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/flows/:flowAlias/executions',
  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({
  alias: '',
  authenticationConfig: '',
  authenticationFlow: false,
  configurable: false,
  displayName: '',
  flowId: '',
  id: '',
  index: 0,
  level: 0,
  providerId: '',
  requirement: '',
  requirementChoices: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions',
  headers: {'content-type': 'application/json'},
  body: {
    alias: '',
    authenticationConfig: '',
    authenticationFlow: false,
    configurable: false,
    displayName: '',
    flowId: '',
    id: '',
    index: 0,
    level: 0,
    providerId: '',
    requirement: '',
    requirementChoices: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  alias: '',
  authenticationConfig: '',
  authenticationFlow: false,
  configurable: false,
  displayName: '',
  flowId: '',
  id: '',
  index: 0,
  level: 0,
  providerId: '',
  requirement: '',
  requirementChoices: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    authenticationConfig: '',
    authenticationFlow: false,
    configurable: false,
    displayName: '',
    flowId: '',
    id: '',
    index: 0,
    level: 0,
    providerId: '',
    requirement: '',
    requirementChoices: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","authenticationConfig":"","authenticationFlow":false,"configurable":false,"displayName":"","flowId":"","id":"","index":0,"level":0,"providerId":"","requirement":"","requirementChoices":[]}'
};

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 = @{ @"alias": @"",
                              @"authenticationConfig": @"",
                              @"authenticationFlow": @NO,
                              @"configurable": @NO,
                              @"displayName": @"",
                              @"flowId": @"",
                              @"id": @"",
                              @"index": @0,
                              @"level": @0,
                              @"providerId": @"",
                              @"requirement": @"",
                              @"requirementChoices": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'alias' => '',
    'authenticationConfig' => '',
    'authenticationFlow' => null,
    'configurable' => null,
    'displayName' => '',
    'flowId' => '',
    'id' => '',
    'index' => 0,
    'level' => 0,
    'providerId' => '',
    'requirement' => '',
    'requirementChoices' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions', [
  'body' => '{
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'authenticationConfig' => '',
  'authenticationFlow' => null,
  'configurable' => null,
  'displayName' => '',
  'flowId' => '',
  'id' => '',
  'index' => 0,
  'level' => 0,
  'providerId' => '',
  'requirement' => '',
  'requirementChoices' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'authenticationConfig' => '',
  'authenticationFlow' => null,
  'configurable' => null,
  'displayName' => '',
  'flowId' => '',
  'id' => '',
  'index' => 0,
  'level' => 0,
  'providerId' => '',
  'requirement' => '',
  'requirementChoices' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/authentication/flows/:flowAlias/executions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"

payload = {
    "alias": "",
    "authenticationConfig": "",
    "authenticationFlow": False,
    "configurable": False,
    "displayName": "",
    "flowId": "",
    "id": "",
    "index": 0,
    "level": 0,
    "providerId": "",
    "requirement": "",
    "requirementChoices": []
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions"

payload <- "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/authentication/flows/:flowAlias/executions') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"authenticationConfig\": \"\",\n  \"authenticationFlow\": false,\n  \"configurable\": false,\n  \"displayName\": \"\",\n  \"flowId\": \"\",\n  \"id\": \"\",\n  \"index\": 0,\n  \"level\": 0,\n  \"providerId\": \"\",\n  \"requirement\": \"\",\n  \"requirementChoices\": []\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}}/:realm/authentication/flows/:flowAlias/executions";

    let payload = json!({
        "alias": "",
        "authenticationConfig": "",
        "authenticationFlow": false,
        "configurable": false,
        "displayName": "",
        "flowId": "",
        "id": "",
        "index": 0,
        "level": 0,
        "providerId": "",
        "requirement": "",
        "requirementChoices": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
}'
echo '{
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
}' |  \
  http PUT {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "authenticationConfig": "",\n  "authenticationFlow": false,\n  "configurable": false,\n  "displayName": "",\n  "flowId": "",\n  "id": "",\n  "index": 0,\n  "level": 0,\n  "providerId": "",\n  "requirement": "",\n  "requirementChoices": []\n}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/flows/:flowAlias/executions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "authenticationConfig": "",
  "authenticationFlow": false,
  "configurable": false,
  "displayName": "",
  "flowId": "",
  "id": "",
  "index": 0,
  "level": 0,
  "providerId": "",
  "requirement": "",
  "requirementChoices": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/flows/:flowAlias/executions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update authenticator configuration
{{baseUrl}}/:realm/authentication/config/:id
BODY json

{
  "alias": "",
  "config": {},
  "id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/config/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/authentication/config/:id" {:content-type :json
                                                                            :form-params {:alias ""
                                                                                          :config {}
                                                                                          :id ""}})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/config/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/authentication/config/:id"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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}}/:realm/authentication/config/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/authentication/config/:id"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/authentication/config/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 45

{
  "alias": "",
  "config": {},
  "id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/authentication/config/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/config/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/config/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/authentication/config/:id")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  config: {},
  id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/authentication/config/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/config/:id',
  headers: {'content-type': 'application/json'},
  data: {alias: '', config: {}, id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/config/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","config":{},"id":""}'
};

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}}/:realm/authentication/config/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "config": {},\n  "id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/config/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/config/:id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({alias: '', config: {}, id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/config/:id',
  headers: {'content-type': 'application/json'},
  body: {alias: '', config: {}, id: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/authentication/config/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  alias: '',
  config: {},
  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: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/config/:id',
  headers: {'content-type': 'application/json'},
  data: {alias: '', config: {}, id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/authentication/config/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","config":{},"id":""}'
};

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 = @{ @"alias": @"",
                              @"config": @{  },
                              @"id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/config/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/authentication/config/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/config/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'alias' => '',
    'config' => [
        
    ],
    'id' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/authentication/config/:id', [
  'body' => '{
  "alias": "",
  "config": {},
  "id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/config/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'config' => [
    
  ],
  'id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'config' => [
    
  ],
  'id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/authentication/config/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/config/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "config": {},
  "id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/config/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "config": {},
  "id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/authentication/config/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/authentication/config/:id"

payload = {
    "alias": "",
    "config": {},
    "id": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/authentication/config/:id"

payload <- "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/authentication/config/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/authentication/config/:id') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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}}/:realm/authentication/config/:id";

    let payload = json!({
        "alias": "",
        "config": json!({}),
        "id": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/authentication/config/:id \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "config": {},
  "id": ""
}'
echo '{
  "alias": "",
  "config": {},
  "id": ""
}' |  \
  http PUT {{baseUrl}}/:realm/authentication/config/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "config": {},\n  "id": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/config/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "config": [],
  "id": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/config/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Update execution with new configuration
{{baseUrl}}/:realm/authentication/executions/:executionId/config
BODY json

{
  "alias": "",
  "config": {},
  "id": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/executions/:executionId/config");

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  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/authentication/executions/:executionId/config" {:content-type :json
                                                                                                 :form-params {:alias ""
                                                                                                               :config {}
                                                                                                               :id ""}})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/executions/:executionId/config"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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}}/:realm/authentication/executions/:executionId/config"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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}}/:realm/authentication/executions/:executionId/config");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/authentication/executions/:executionId/config"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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/:realm/authentication/executions/:executionId/config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 45

{
  "alias": "",
  "config": {},
  "id": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/authentication/executions/:executionId/config")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/executions/:executionId/config"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions/:executionId/config")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/authentication/executions/:executionId/config")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  config: {},
  id: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/authentication/executions/:executionId/config');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/executions/:executionId/config',
  headers: {'content-type': 'application/json'},
  data: {alias: '', config: {}, id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/executions/:executionId/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","config":{},"id":""}'
};

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}}/:realm/authentication/executions/:executionId/config',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "config": {},\n  "id": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/executions/:executionId/config")
  .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/:realm/authentication/executions/:executionId/config',
  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({alias: '', config: {}, id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/authentication/executions/:executionId/config',
  headers: {'content-type': 'application/json'},
  body: {alias: '', config: {}, id: ''},
  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}}/:realm/authentication/executions/:executionId/config');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  alias: '',
  config: {},
  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}}/:realm/authentication/executions/:executionId/config',
  headers: {'content-type': 'application/json'},
  data: {alias: '', config: {}, id: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/authentication/executions/:executionId/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","config":{},"id":""}'
};

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 = @{ @"alias": @"",
                              @"config": @{  },
                              @"id": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/executions/:executionId/config"]
                                                       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}}/:realm/authentication/executions/:executionId/config" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/executions/:executionId/config",
  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([
    'alias' => '',
    'config' => [
        
    ],
    'id' => ''
  ]),
  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}}/:realm/authentication/executions/:executionId/config', [
  'body' => '{
  "alias": "",
  "config": {},
  "id": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/executions/:executionId/config');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'config' => [
    
  ],
  'id' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'config' => [
    
  ],
  'id' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/authentication/executions/:executionId/config');
$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}}/:realm/authentication/executions/:executionId/config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "config": {},
  "id": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/executions/:executionId/config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "config": {},
  "id": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/authentication/executions/:executionId/config", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/authentication/executions/:executionId/config"

payload = {
    "alias": "",
    "config": {},
    "id": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/authentication/executions/:executionId/config"

payload <- "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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}}/:realm/authentication/executions/:executionId/config")

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  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\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/:realm/authentication/executions/:executionId/config') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"id\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/authentication/executions/:executionId/config";

    let payload = json!({
        "alias": "",
        "config": json!({}),
        "id": ""
    });

    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}}/:realm/authentication/executions/:executionId/config \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "config": {},
  "id": ""
}'
echo '{
  "alias": "",
  "config": {},
  "id": ""
}' |  \
  http POST {{baseUrl}}/:realm/authentication/executions/:executionId/config \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "config": {},\n  "id": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/executions/:executionId/config
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "config": [],
  "id": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/executions/:executionId/config")! 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()
PUT Update required action
{{baseUrl}}/:realm/authentication/required-actions/:alias
BODY json

{
  "alias": "",
  "config": {},
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/authentication/required-actions/:alias");

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  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/authentication/required-actions/:alias" {:content-type :json
                                                                                         :form-params {:alias ""
                                                                                                       :config {}
                                                                                                       :defaultAction false
                                                                                                       :enabled false
                                                                                                       :name ""
                                                                                                       :priority 0
                                                                                                       :providerId ""}})
require "http/client"

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/authentication/required-actions/:alias"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\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}}/:realm/authentication/required-actions/:alias");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/authentication/required-actions/:alias"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/authentication/required-actions/:alias HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 130

{
  "alias": "",
  "config": {},
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/authentication/required-actions/:alias"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\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  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  config: {},
  defaultAction: false,
  enabled: false,
  name: '',
  priority: 0,
  providerId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/authentication/required-actions/:alias');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/required-actions/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    config: {},
    defaultAction: false,
    enabled: false,
    name: '',
    priority: 0,
    providerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","config":{},"defaultAction":false,"enabled":false,"name":"","priority":0,"providerId":""}'
};

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}}/:realm/authentication/required-actions/:alias',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "config": {},\n  "defaultAction": false,\n  "enabled": false,\n  "name": "",\n  "priority": 0,\n  "providerId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/authentication/required-actions/:alias")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/authentication/required-actions/:alias',
  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({
  alias: '',
  config: {},
  defaultAction: false,
  enabled: false,
  name: '',
  priority: 0,
  providerId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/required-actions/:alias',
  headers: {'content-type': 'application/json'},
  body: {
    alias: '',
    config: {},
    defaultAction: false,
    enabled: false,
    name: '',
    priority: 0,
    providerId: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/authentication/required-actions/:alias');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  alias: '',
  config: {},
  defaultAction: false,
  enabled: false,
  name: '',
  priority: 0,
  providerId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/authentication/required-actions/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    config: {},
    defaultAction: false,
    enabled: false,
    name: '',
    priority: 0,
    providerId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/authentication/required-actions/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","config":{},"defaultAction":false,"enabled":false,"name":"","priority":0,"providerId":""}'
};

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 = @{ @"alias": @"",
                              @"config": @{  },
                              @"defaultAction": @NO,
                              @"enabled": @NO,
                              @"name": @"",
                              @"priority": @0,
                              @"providerId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/authentication/required-actions/:alias"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/authentication/required-actions/:alias" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/authentication/required-actions/:alias",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'alias' => '',
    'config' => [
        
    ],
    'defaultAction' => null,
    'enabled' => null,
    'name' => '',
    'priority' => 0,
    'providerId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/authentication/required-actions/:alias', [
  'body' => '{
  "alias": "",
  "config": {},
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'config' => [
    
  ],
  'defaultAction' => null,
  'enabled' => null,
  'name' => '',
  'priority' => 0,
  'providerId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'config' => [
    
  ],
  'defaultAction' => null,
  'enabled' => null,
  'name' => '',
  'priority' => 0,
  'providerId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/authentication/required-actions/:alias');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "config": {},
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/authentication/required-actions/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "config": {},
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/authentication/required-actions/:alias", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/authentication/required-actions/:alias"

payload = {
    "alias": "",
    "config": {},
    "defaultAction": False,
    "enabled": False,
    "name": "",
    "priority": 0,
    "providerId": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/authentication/required-actions/:alias"

payload <- "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/authentication/required-actions/:alias")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/authentication/required-actions/:alias') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"config\": {},\n  \"defaultAction\": false,\n  \"enabled\": false,\n  \"name\": \"\",\n  \"priority\": 0,\n  \"providerId\": \"\"\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}}/:realm/authentication/required-actions/:alias";

    let payload = json!({
        "alias": "",
        "config": json!({}),
        "defaultAction": false,
        "enabled": false,
        "name": "",
        "priority": 0,
        "providerId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/authentication/required-actions/:alias \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "config": {},
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
}'
echo '{
  "alias": "",
  "config": {},
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
}' |  \
  http PUT {{baseUrl}}/:realm/authentication/required-actions/:alias \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "config": {},\n  "defaultAction": false,\n  "enabled": false,\n  "name": "",\n  "priority": 0,\n  "providerId": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/authentication/required-actions/:alias
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "config": [],
  "defaultAction": false,
  "enabled": false,
  "name": "",
  "priority": 0,
  "providerId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/authentication/required-actions/:alias")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Generate a new certificate with new key pair
{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate"

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}}/:realm/clients/:id/certificates/:attr/generate"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate"

	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/:realm/clients/:id/certificates/:attr/generate HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate"))
    .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}}/:realm/clients/:id/certificates/:attr/generate")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate")
  .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}}/:realm/clients/:id/certificates/:attr/generate');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate';
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}}/:realm/clients/:id/certificates/:attr/generate',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/certificates/:attr/generate',
  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}}/:realm/clients/:id/certificates/:attr/generate'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate');

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}}/:realm/clients/:id/certificates/:attr/generate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate';
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}}/:realm/clients/:id/certificates/:attr/generate"]
                                                       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}}/:realm/clients/:id/certificates/:attr/generate" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate",
  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}}/:realm/clients/:id/certificates/:attr/generate');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clients/:id/certificates/:attr/generate")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate")

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/:realm/clients/:id/certificates/:attr/generate') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate";

    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}}/:realm/clients/:id/certificates/:attr/generate
http POST {{baseUrl}}/:realm/clients/:id/certificates/:attr/generate
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/certificates/:attr/generate
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate")! 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 Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format.
{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download
BODY json

{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download");

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  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download" {:content-type :json
                                                                                                        :form-params {:format ""
                                                                                                                      :keyAlias ""
                                                                                                                      :keyPassword ""
                                                                                                                      :realmAlias ""
                                                                                                                      :realmCertificate false
                                                                                                                      :storePassword ""}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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}}/:realm/clients/:id/certificates/:attr/generate-and-download"),
    Content = new StringContent("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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}}/:realm/clients/:id/certificates/:attr/generate-and-download");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download"

	payload := strings.NewReader("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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/:realm/clients/:id/certificates/:attr/generate-and-download HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 129

{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download")
  .header("content-type", "application/json")
  .body("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  format: '',
  keyAlias: '',
  keyPassword: '',
  realmAlias: '',
  realmCertificate: false,
  storePassword: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download',
  headers: {'content-type': 'application/json'},
  data: {
    format: '',
    keyAlias: '',
    keyPassword: '',
    realmAlias: '',
    realmCertificate: false,
    storePassword: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"format":"","keyAlias":"","keyPassword":"","realmAlias":"","realmCertificate":false,"storePassword":""}'
};

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}}/:realm/clients/:id/certificates/:attr/generate-and-download',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "format": "",\n  "keyAlias": "",\n  "keyPassword": "",\n  "realmAlias": "",\n  "realmCertificate": false,\n  "storePassword": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download")
  .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/:realm/clients/:id/certificates/:attr/generate-and-download',
  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({
  format: '',
  keyAlias: '',
  keyPassword: '',
  realmAlias: '',
  realmCertificate: false,
  storePassword: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download',
  headers: {'content-type': 'application/json'},
  body: {
    format: '',
    keyAlias: '',
    keyPassword: '',
    realmAlias: '',
    realmCertificate: false,
    storePassword: ''
  },
  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}}/:realm/clients/:id/certificates/:attr/generate-and-download');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  format: '',
  keyAlias: '',
  keyPassword: '',
  realmAlias: '',
  realmCertificate: false,
  storePassword: ''
});

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}}/:realm/clients/:id/certificates/:attr/generate-and-download',
  headers: {'content-type': 'application/json'},
  data: {
    format: '',
    keyAlias: '',
    keyPassword: '',
    realmAlias: '',
    realmCertificate: false,
    storePassword: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"format":"","keyAlias":"","keyPassword":"","realmAlias":"","realmCertificate":false,"storePassword":""}'
};

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 = @{ @"format": @"",
                              @"keyAlias": @"",
                              @"keyPassword": @"",
                              @"realmAlias": @"",
                              @"realmCertificate": @NO,
                              @"storePassword": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download"]
                                                       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}}/:realm/clients/:id/certificates/:attr/generate-and-download" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download",
  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([
    'format' => '',
    'keyAlias' => '',
    'keyPassword' => '',
    'realmAlias' => '',
    'realmCertificate' => null,
    'storePassword' => ''
  ]),
  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}}/:realm/clients/:id/certificates/:attr/generate-and-download', [
  'body' => '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'format' => '',
  'keyAlias' => '',
  'keyPassword' => '',
  'realmAlias' => '',
  'realmCertificate' => null,
  'storePassword' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'format' => '',
  'keyAlias' => '',
  'keyPassword' => '',
  'realmAlias' => '',
  'realmCertificate' => null,
  'storePassword' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download');
$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}}/:realm/clients/:id/certificates/:attr/generate-and-download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/certificates/:attr/generate-and-download", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download"

payload = {
    "format": "",
    "keyAlias": "",
    "keyPassword": "",
    "realmAlias": "",
    "realmCertificate": False,
    "storePassword": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download"

payload <- "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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}}/:realm/clients/:id/certificates/:attr/generate-and-download")

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  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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/:realm/clients/:id/certificates/:attr/generate-and-download') do |req|
  req.body = "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download";

    let payload = json!({
        "format": "",
        "keyAlias": "",
        "keyPassword": "",
        "realmAlias": "",
        "realmCertificate": false,
        "storePassword": ""
    });

    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}}/:realm/clients/:id/certificates/:attr/generate-and-download \
  --header 'content-type: application/json' \
  --data '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}'
echo '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}' |  \
  http POST {{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "format": "",\n  "keyAlias": "",\n  "keyPassword": "",\n  "realmAlias": "",\n  "realmCertificate": false,\n  "storePassword": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/certificates/:attr/generate-and-download")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Get a keystore file for the client, containing private key and public certificate
{{baseUrl}}/:realm/clients/:id/certificates/:attr/download
BODY json

{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download");

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  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download" {:content-type :json
                                                                                           :form-params {:format ""
                                                                                                         :keyAlias ""
                                                                                                         :keyPassword ""
                                                                                                         :realmAlias ""
                                                                                                         :realmCertificate false
                                                                                                         :storePassword ""}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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}}/:realm/clients/:id/certificates/:attr/download"),
    Content = new StringContent("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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}}/:realm/clients/:id/certificates/:attr/download");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download"

	payload := strings.NewReader("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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/:realm/clients/:id/certificates/:attr/download HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 129

{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/certificates/:attr/download"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr/download")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/certificates/:attr/download")
  .header("content-type", "application/json")
  .body("{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  format: '',
  keyAlias: '',
  keyPassword: '',
  realmAlias: '',
  realmCertificate: false,
  storePassword: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/certificates/:attr/download');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr/download',
  headers: {'content-type': 'application/json'},
  data: {
    format: '',
    keyAlias: '',
    keyPassword: '',
    realmAlias: '',
    realmCertificate: false,
    storePassword: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"format":"","keyAlias":"","keyPassword":"","realmAlias":"","realmCertificate":false,"storePassword":""}'
};

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}}/:realm/clients/:id/certificates/:attr/download',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "format": "",\n  "keyAlias": "",\n  "keyPassword": "",\n  "realmAlias": "",\n  "realmCertificate": false,\n  "storePassword": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr/download")
  .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/:realm/clients/:id/certificates/:attr/download',
  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({
  format: '',
  keyAlias: '',
  keyPassword: '',
  realmAlias: '',
  realmCertificate: false,
  storePassword: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr/download',
  headers: {'content-type': 'application/json'},
  body: {
    format: '',
    keyAlias: '',
    keyPassword: '',
    realmAlias: '',
    realmCertificate: false,
    storePassword: ''
  },
  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}}/:realm/clients/:id/certificates/:attr/download');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  format: '',
  keyAlias: '',
  keyPassword: '',
  realmAlias: '',
  realmCertificate: false,
  storePassword: ''
});

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}}/:realm/clients/:id/certificates/:attr/download',
  headers: {'content-type': 'application/json'},
  data: {
    format: '',
    keyAlias: '',
    keyPassword: '',
    realmAlias: '',
    realmCertificate: false,
    storePassword: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"format":"","keyAlias":"","keyPassword":"","realmAlias":"","realmCertificate":false,"storePassword":""}'
};

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 = @{ @"format": @"",
                              @"keyAlias": @"",
                              @"keyPassword": @"",
                              @"realmAlias": @"",
                              @"realmCertificate": @NO,
                              @"storePassword": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/certificates/:attr/download"]
                                                       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}}/:realm/clients/:id/certificates/:attr/download" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download",
  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([
    'format' => '',
    'keyAlias' => '',
    'keyPassword' => '',
    'realmAlias' => '',
    'realmCertificate' => null,
    'storePassword' => ''
  ]),
  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}}/:realm/clients/:id/certificates/:attr/download', [
  'body' => '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/download');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'format' => '',
  'keyAlias' => '',
  'keyPassword' => '',
  'realmAlias' => '',
  'realmCertificate' => null,
  'storePassword' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'format' => '',
  'keyAlias' => '',
  'keyPassword' => '',
  'realmAlias' => '',
  'realmCertificate' => null,
  'storePassword' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/download');
$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}}/:realm/clients/:id/certificates/:attr/download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/certificates/:attr/download", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download"

payload = {
    "format": "",
    "keyAlias": "",
    "keyPassword": "",
    "realmAlias": "",
    "realmCertificate": False,
    "storePassword": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download"

payload <- "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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}}/:realm/clients/:id/certificates/:attr/download")

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  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\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/:realm/clients/:id/certificates/:attr/download') do |req|
  req.body = "{\n  \"format\": \"\",\n  \"keyAlias\": \"\",\n  \"keyPassword\": \"\",\n  \"realmAlias\": \"\",\n  \"realmCertificate\": false,\n  \"storePassword\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download";

    let payload = json!({
        "format": "",
        "keyAlias": "",
        "keyPassword": "",
        "realmAlias": "",
        "realmCertificate": false,
        "storePassword": ""
    });

    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}}/:realm/clients/:id/certificates/:attr/download \
  --header 'content-type: application/json' \
  --data '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}'
echo '{
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
}' |  \
  http POST {{baseUrl}}/:realm/clients/:id/certificates/:attr/download \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "format": "",\n  "keyAlias": "",\n  "keyPassword": "",\n  "realmAlias": "",\n  "realmCertificate": false,\n  "storePassword": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/certificates/:attr/download
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "format": "",
  "keyAlias": "",
  "keyPassword": "",
  "realmAlias": "",
  "realmCertificate": false,
  "storePassword": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/certificates/:attr/download")! 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 Get key info
{{baseUrl}}/:realm/clients/:id/certificates/:attr
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/certificates/:attr");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/certificates/:attr")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr"

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}}/:realm/clients/:id/certificates/:attr"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/certificates/:attr");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/certificates/:attr"

	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/:realm/clients/:id/certificates/:attr HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/certificates/:attr")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/certificates/:attr"))
    .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}}/:realm/clients/:id/certificates/:attr")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/certificates/:attr")
  .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}}/:realm/clients/:id/certificates/:attr');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr';
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}}/:realm/clients/:id/certificates/:attr',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/certificates/:attr',
  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}}/:realm/clients/:id/certificates/:attr'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/certificates/:attr');

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}}/:realm/clients/:id/certificates/:attr'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr';
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}}/:realm/clients/:id/certificates/:attr"]
                                                       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}}/:realm/clients/:id/certificates/:attr" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/certificates/:attr",
  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}}/:realm/clients/:id/certificates/:attr');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/certificates/:attr")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/certificates/:attr"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/certificates/:attr")

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/:realm/clients/:id/certificates/:attr') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr";

    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}}/:realm/clients/:id/certificates/:attr
http GET {{baseUrl}}/:realm/clients/:id/certificates/:attr
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/certificates/:attr
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/certificates/:attr")! 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 Upload certificate and eventually private key
{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload"

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}}/:realm/clients/:id/certificates/:attr/upload"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload"

	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/:realm/clients/:id/certificates/:attr/upload HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload"))
    .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}}/:realm/clients/:id/certificates/:attr/upload")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload")
  .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}}/:realm/clients/:id/certificates/:attr/upload');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload';
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}}/:realm/clients/:id/certificates/:attr/upload',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/certificates/:attr/upload',
  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}}/:realm/clients/:id/certificates/:attr/upload'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload');

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}}/:realm/clients/:id/certificates/:attr/upload'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload';
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}}/:realm/clients/:id/certificates/:attr/upload"]
                                                       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}}/:realm/clients/:id/certificates/:attr/upload" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload",
  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}}/:realm/clients/:id/certificates/:attr/upload');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clients/:id/certificates/:attr/upload")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload")

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/:realm/clients/:id/certificates/:attr/upload') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload";

    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}}/:realm/clients/:id/certificates/:attr/upload
http POST {{baseUrl}}/:realm/clients/:id/certificates/:attr/upload
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/certificates/:attr/upload
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload")! 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 Upload only certificate, not private key
{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate"

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}}/:realm/clients/:id/certificates/:attr/upload-certificate"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate"

	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/:realm/clients/:id/certificates/:attr/upload-certificate HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate"))
    .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}}/:realm/clients/:id/certificates/:attr/upload-certificate")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate")
  .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}}/:realm/clients/:id/certificates/:attr/upload-certificate');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate';
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}}/:realm/clients/:id/certificates/:attr/upload-certificate',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/certificates/:attr/upload-certificate',
  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}}/:realm/clients/:id/certificates/:attr/upload-certificate'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate');

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}}/:realm/clients/:id/certificates/:attr/upload-certificate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate';
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}}/:realm/clients/:id/certificates/:attr/upload-certificate"]
                                                       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}}/:realm/clients/:id/certificates/:attr/upload-certificate" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate",
  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}}/:realm/clients/:id/certificates/:attr/upload-certificate');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clients/:id/certificates/:attr/upload-certificate")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate")

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/:realm/clients/:id/certificates/:attr/upload-certificate') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate";

    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}}/:realm/clients/:id/certificates/:attr/upload-certificate
http POST {{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/certificates/:attr/upload-certificate")! 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 Create a new initial access token.
{{baseUrl}}/:realm/clients-initial-access
BODY json

{
  "count": 0,
  "expiration": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients-initial-access");

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  \"count\": 0,\n  \"expiration\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients-initial-access" {:content-type :json
                                                                          :form-params {:count 0
                                                                                        :expiration 0}})
require "http/client"

url = "{{baseUrl}}/:realm/clients-initial-access"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"count\": 0,\n  \"expiration\": 0\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}}/:realm/clients-initial-access"),
    Content = new StringContent("{\n  \"count\": 0,\n  \"expiration\": 0\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}}/:realm/clients-initial-access");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"count\": 0,\n  \"expiration\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients-initial-access"

	payload := strings.NewReader("{\n  \"count\": 0,\n  \"expiration\": 0\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/:realm/clients-initial-access HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 35

{
  "count": 0,
  "expiration": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients-initial-access")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"count\": 0,\n  \"expiration\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients-initial-access"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"count\": 0,\n  \"expiration\": 0\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  \"count\": 0,\n  \"expiration\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients-initial-access")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients-initial-access")
  .header("content-type", "application/json")
  .body("{\n  \"count\": 0,\n  \"expiration\": 0\n}")
  .asString();
const data = JSON.stringify({
  count: 0,
  expiration: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients-initial-access');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients-initial-access',
  headers: {'content-type': 'application/json'},
  data: {count: 0, expiration: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients-initial-access';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"count":0,"expiration":0}'
};

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}}/:realm/clients-initial-access',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "count": 0,\n  "expiration": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"count\": 0,\n  \"expiration\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients-initial-access")
  .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/:realm/clients-initial-access',
  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({count: 0, expiration: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients-initial-access',
  headers: {'content-type': 'application/json'},
  body: {count: 0, expiration: 0},
  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}}/:realm/clients-initial-access');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  count: 0,
  expiration: 0
});

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}}/:realm/clients-initial-access',
  headers: {'content-type': 'application/json'},
  data: {count: 0, expiration: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients-initial-access';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"count":0,"expiration":0}'
};

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 = @{ @"count": @0,
                              @"expiration": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients-initial-access"]
                                                       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}}/:realm/clients-initial-access" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"count\": 0,\n  \"expiration\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients-initial-access",
  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([
    'count' => 0,
    'expiration' => 0
  ]),
  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}}/:realm/clients-initial-access', [
  'body' => '{
  "count": 0,
  "expiration": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients-initial-access');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'count' => 0,
  'expiration' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'count' => 0,
  'expiration' => 0
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients-initial-access');
$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}}/:realm/clients-initial-access' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "count": 0,
  "expiration": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients-initial-access' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "count": 0,
  "expiration": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"count\": 0,\n  \"expiration\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients-initial-access", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients-initial-access"

payload = {
    "count": 0,
    "expiration": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients-initial-access"

payload <- "{\n  \"count\": 0,\n  \"expiration\": 0\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}}/:realm/clients-initial-access")

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  \"count\": 0,\n  \"expiration\": 0\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/:realm/clients-initial-access') do |req|
  req.body = "{\n  \"count\": 0,\n  \"expiration\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients-initial-access";

    let payload = json!({
        "count": 0,
        "expiration": 0
    });

    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}}/:realm/clients-initial-access \
  --header 'content-type: application/json' \
  --data '{
  "count": 0,
  "expiration": 0
}'
echo '{
  "count": 0,
  "expiration": 0
}' |  \
  http POST {{baseUrl}}/:realm/clients-initial-access \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "count": 0,\n  "expiration": 0\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients-initial-access
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "count": 0,
  "expiration": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients-initial-access")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-clients-initial-access--id
{{baseUrl}}/:realm/clients-initial-access/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients-initial-access/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients-initial-access/:id")
require "http/client"

url = "{{baseUrl}}/:realm/clients-initial-access/:id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients-initial-access/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients-initial-access/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients-initial-access/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/clients-initial-access/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients-initial-access/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients-initial-access/:id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients-initial-access/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients-initial-access/:id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/clients-initial-access/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients-initial-access/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients-initial-access/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/clients-initial-access/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients-initial-access/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients-initial-access/:id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients-initial-access/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients-initial-access/:id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients-initial-access/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients-initial-access/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients-initial-access/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients-initial-access/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients-initial-access/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/clients-initial-access/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients-initial-access/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients-initial-access/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients-initial-access/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients-initial-access/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/clients-initial-access/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients-initial-access/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients-initial-access/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients-initial-access/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/clients-initial-access/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients-initial-access/:id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/clients-initial-access/:id
http DELETE {{baseUrl}}/:realm/clients-initial-access/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/clients-initial-access/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients-initial-access/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET get --realm-clients-initial-access
{{baseUrl}}/:realm/clients-initial-access
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients-initial-access");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients-initial-access")
require "http/client"

url = "{{baseUrl}}/:realm/clients-initial-access"

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}}/:realm/clients-initial-access"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients-initial-access");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients-initial-access"

	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/:realm/clients-initial-access HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients-initial-access")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients-initial-access"))
    .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}}/:realm/clients-initial-access")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients-initial-access")
  .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}}/:realm/clients-initial-access');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients-initial-access'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients-initial-access';
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}}/:realm/clients-initial-access',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients-initial-access")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients-initial-access',
  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}}/:realm/clients-initial-access'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients-initial-access');

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}}/:realm/clients-initial-access'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients-initial-access';
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}}/:realm/clients-initial-access"]
                                                       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}}/:realm/clients-initial-access" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients-initial-access",
  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}}/:realm/clients-initial-access');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients-initial-access');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients-initial-access');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients-initial-access' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients-initial-access' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients-initial-access")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients-initial-access"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients-initial-access"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients-initial-access")

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/:realm/clients-initial-access') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients-initial-access";

    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}}/:realm/clients-initial-access
http GET {{baseUrl}}/:realm/clients-initial-access
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients-initial-access
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients-initial-access")! 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 Base path for retrieve providers with the configProperties properly filled
{{baseUrl}}/:realm/client-registration-policy/providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-registration-policy/providers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-registration-policy/providers")
require "http/client"

url = "{{baseUrl}}/:realm/client-registration-policy/providers"

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}}/:realm/client-registration-policy/providers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-registration-policy/providers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-registration-policy/providers"

	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/:realm/client-registration-policy/providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-registration-policy/providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-registration-policy/providers"))
    .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}}/:realm/client-registration-policy/providers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-registration-policy/providers")
  .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}}/:realm/client-registration-policy/providers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-registration-policy/providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-registration-policy/providers';
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}}/:realm/client-registration-policy/providers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-registration-policy/providers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-registration-policy/providers',
  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}}/:realm/client-registration-policy/providers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-registration-policy/providers');

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}}/:realm/client-registration-policy/providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-registration-policy/providers';
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}}/:realm/client-registration-policy/providers"]
                                                       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}}/:realm/client-registration-policy/providers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-registration-policy/providers",
  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}}/:realm/client-registration-policy/providers');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-registration-policy/providers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-registration-policy/providers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-registration-policy/providers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-registration-policy/providers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-registration-policy/providers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-registration-policy/providers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-registration-policy/providers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-registration-policy/providers")

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/:realm/client-registration-policy/providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-registration-policy/providers";

    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}}/:realm/client-registration-policy/providers
http GET {{baseUrl}}/:realm/client-registration-policy/providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-registration-policy/providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-registration-policy/providers")! 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 Add client-level roles to the user role mapping (POST)
{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client" {:content-type :json
                                                                                           :form-params [{:attributes {}
                                                                                                          :clientRole false
                                                                                                          :composite false
                                                                                                          :composites {:client {}
                                                                                                                       :realm []}
                                                                                                          :containerId ""
                                                                                                          :description ""
                                                                                                          :id ""
                                                                                                          :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/users/:id/role-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/users/:id/role-mappings/clients/:client',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .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/:realm/users/:id/role-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/users/:id/role-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"]
                                                       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}}/:realm/users/:id/role-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/users/:id/role-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
$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}}/:realm/users/:id/role-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/users/:id/role-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/users/:id/role-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/users/:id/role-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add client-level roles to the user role mapping
{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client" {:content-type :json
                                                                                            :form-params [{:attributes {}
                                                                                                           :clientRole false
                                                                                                           :composite false
                                                                                                           :composites {:client {}
                                                                                                                        :realm []}
                                                                                                           :containerId ""
                                                                                                           :description ""
                                                                                                           :id ""
                                                                                                           :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/groups/:id/role-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/groups/:id/role-mappings/clients/:client',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .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/:realm/groups/:id/role-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/groups/:id/role-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"]
                                                       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}}/:realm/groups/:id/role-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/groups/:id/role-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
$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}}/:realm/groups/:id/role-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/groups/:id/role-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/groups/:id/role-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/groups/:id/role-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete client-level roles from user role mapping (DELETE)
{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client" {:content-type :json
                                                                                             :form-params [{:attributes {}
                                                                                                            :clientRole false
                                                                                                            :composite false
                                                                                                            :composites {:client {}
                                                                                                                         :realm []}
                                                                                                            :containerId ""
                                                                                                            :description ""
                                                                                                            :id ""
                                                                                                            :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/users/:id/role-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/users/:id/role-mappings/clients/:client',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/users/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/users/:id/role-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
$request->setRequestMethod('DELETE');
$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}}/:realm/users/:id/role-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/users/:id/role-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/users/:id/role-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Delete client-level roles from user role mapping
{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client" {:content-type :json
                                                                                              :form-params [{:attributes {}
                                                                                                             :clientRole false
                                                                                                             :composite false
                                                                                                             :composites {:client {}
                                                                                                                          :realm []}
                                                                                                             :containerId ""
                                                                                                             :description ""
                                                                                                             :id ""
                                                                                                             :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/groups/:id/role-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/groups/:id/role-mappings/clients/:client',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/groups/:id/role-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/groups/:id/role-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
$request->setRequestMethod('DELETE');
$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}}/:realm/groups/:id/role-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/groups/:id/role-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/groups/:id/role-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Get available client-level roles that can be mapped to the user (GET)
{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available"

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}}/:realm/users/:id/role-mappings/clients/:client/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available"

	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/:realm/users/:id/role-mappings/clients/:client/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available"))
    .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}}/:realm/users/:id/role-mappings/clients/:client/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available")
  .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}}/:realm/users/:id/role-mappings/clients/:client/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available';
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}}/:realm/users/:id/role-mappings/clients/:client/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/clients/:client/available',
  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}}/:realm/users/:id/role-mappings/clients/:client/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available');

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}}/:realm/users/:id/role-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available';
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}}/:realm/users/:id/role-mappings/clients/:client/available"]
                                                       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}}/:realm/users/:id/role-mappings/clients/:client/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available",
  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}}/:realm/users/:id/role-mappings/clients/:client/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/role-mappings/clients/:client/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available")

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/:realm/users/:id/role-mappings/clients/:client/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available";

    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}}/:realm/users/:id/role-mappings/clients/:client/available
http GET {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/available")! 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 Get available client-level roles that can be mapped to the user
{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available"

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}}/:realm/groups/:id/role-mappings/clients/:client/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available"

	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/:realm/groups/:id/role-mappings/clients/:client/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available"))
    .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}}/:realm/groups/:id/role-mappings/clients/:client/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available")
  .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}}/:realm/groups/:id/role-mappings/clients/:client/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available';
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}}/:realm/groups/:id/role-mappings/clients/:client/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/clients/:client/available',
  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}}/:realm/groups/:id/role-mappings/clients/:client/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available');

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}}/:realm/groups/:id/role-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available';
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}}/:realm/groups/:id/role-mappings/clients/:client/available"]
                                                       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}}/:realm/groups/:id/role-mappings/clients/:client/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available",
  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}}/:realm/groups/:id/role-mappings/clients/:client/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/role-mappings/clients/:client/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available")

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/:realm/groups/:id/role-mappings/clients/:client/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available";

    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}}/:realm/groups/:id/role-mappings/clients/:client/available
http GET {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/available")! 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 Get client-level role mappings for the user, and the app (GET)
{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

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}}/:realm/users/:id/role-mappings/clients/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

	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/:realm/users/:id/role-mappings/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"))
    .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}}/:realm/users/:id/role-mappings/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .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}}/:realm/users/:id/role-mappings/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client';
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}}/:realm/users/:id/role-mappings/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/clients/:client',
  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}}/:realm/users/:id/role-mappings/clients/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');

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}}/:realm/users/:id/role-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client';
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}}/:realm/users/:id/role-mappings/clients/:client"]
                                                       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}}/:realm/users/:id/role-mappings/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client",
  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}}/:realm/users/:id/role-mappings/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/role-mappings/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")

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/:realm/users/:id/role-mappings/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client";

    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}}/:realm/users/:id/role-mappings/clients/:client
http GET {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client")! 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 Get client-level role mappings for the user, and the app
{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

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}}/:realm/groups/:id/role-mappings/clients/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

	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/:realm/groups/:id/role-mappings/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"))
    .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}}/:realm/groups/:id/role-mappings/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .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}}/:realm/groups/:id/role-mappings/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client';
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}}/:realm/groups/:id/role-mappings/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/clients/:client',
  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}}/:realm/groups/:id/role-mappings/clients/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');

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}}/:realm/groups/:id/role-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client';
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}}/:realm/groups/:id/role-mappings/clients/:client"]
                                                       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}}/:realm/groups/:id/role-mappings/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client",
  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}}/:realm/groups/:id/role-mappings/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/role-mappings/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")

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/:realm/groups/:id/role-mappings/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client";

    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}}/:realm/groups/:id/role-mappings/clients/:client
http GET {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client")! 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 Get effective client-level role mappings This recurses any composite roles (GET)
{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite"

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}}/:realm/users/:id/role-mappings/clients/:client/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite"

	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/:realm/users/:id/role-mappings/clients/:client/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite"))
    .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}}/:realm/users/:id/role-mappings/clients/:client/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite")
  .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}}/:realm/users/:id/role-mappings/clients/:client/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite';
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}}/:realm/users/:id/role-mappings/clients/:client/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/clients/:client/composite',
  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}}/:realm/users/:id/role-mappings/clients/:client/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite');

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}}/:realm/users/:id/role-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite';
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}}/:realm/users/:id/role-mappings/clients/:client/composite"]
                                                       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}}/:realm/users/:id/role-mappings/clients/:client/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite",
  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}}/:realm/users/:id/role-mappings/clients/:client/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/role-mappings/clients/:client/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite")

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/:realm/users/:id/role-mappings/clients/:client/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite";

    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}}/:realm/users/:id/role-mappings/clients/:client/composite
http GET {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/clients/:client/composite")! 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 Get effective client-level role mappings This recurses any composite roles
{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite"

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}}/:realm/groups/:id/role-mappings/clients/:client/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite"

	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/:realm/groups/:id/role-mappings/clients/:client/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite"))
    .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}}/:realm/groups/:id/role-mappings/clients/:client/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite")
  .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}}/:realm/groups/:id/role-mappings/clients/:client/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite';
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}}/:realm/groups/:id/role-mappings/clients/:client/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/clients/:client/composite',
  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}}/:realm/groups/:id/role-mappings/clients/:client/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite');

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}}/:realm/groups/:id/role-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite';
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}}/:realm/groups/:id/role-mappings/clients/:client/composite"]
                                                       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}}/:realm/groups/:id/role-mappings/clients/:client/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite",
  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}}/:realm/groups/:id/role-mappings/clients/:client/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/role-mappings/clients/:client/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite")

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/:realm/groups/:id/role-mappings/clients/:client/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite";

    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}}/:realm/groups/:id/role-mappings/clients/:client/composite
http GET {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/clients/:client/composite")! 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 Create a new client scope Client Scope’s name must be unique!
{{baseUrl}}/:realm/client-scopes
BODY json

{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes");

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  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/client-scopes" {:content-type :json
                                                                 :form-params {:attributes {}
                                                                               :description ""
                                                                               :id ""
                                                                               :name ""
                                                                               :protocol ""
                                                                               :protocolMappers [{:config {}
                                                                                                  :id ""
                                                                                                  :name ""
                                                                                                  :protocol ""
                                                                                                  :protocolMapper ""}]}})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes"),
    Content = new StringContent("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes"

	payload := strings.NewReader("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/client-scopes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 230

{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/client-scopes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/client-scopes")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  attributes: {},
  description: '',
  id: '',
  name: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/client-scopes');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    description: '',
    id: '',
    name: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}'
};

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}}/:realm/client-scopes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": {},\n  "description": "",\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes")
  .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/:realm/client-scopes',
  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({
  attributes: {},
  description: '',
  id: '',
  name: '',
  protocol: '',
  protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: {},
    description: '',
    id: '',
    name: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
  },
  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}}/:realm/client-scopes');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: {},
  description: '',
  id: '',
  name: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ]
});

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}}/:realm/client-scopes',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    description: '',
    id: '',
    name: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}'
};

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 = @{ @"attributes": @{  },
                              @"description": @"",
                              @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMappers": @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes"]
                                                       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}}/:realm/client-scopes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes",
  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([
    'attributes' => [
        
    ],
    'description' => '',
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMappers' => [
        [
                'config' => [
                                
                ],
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => ''
        ]
    ]
  ]),
  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}}/:realm/client-scopes', [
  'body' => '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'description' => '',
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'description' => '',
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes');
$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}}/:realm/client-scopes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/client-scopes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes"

payload = {
    "attributes": {},
    "description": "",
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMappers": [
        {
            "config": {},
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes"

payload <- "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes")

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  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/client-scopes') do |req|
  req.body = "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes";

    let payload = json!({
        "attributes": json!({}),
        "description": "",
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMappers": (
            json!({
                "config": json!({}),
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": ""
            })
        )
    });

    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}}/:realm/client-scopes \
  --header 'content-type: application/json' \
  --data '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}'
echo '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/:realm/client-scopes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": {},\n  "description": "",\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [],
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    [
      "config": [],
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the client scope
{{baseUrl}}/:realm/client-scopes/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/client-scopes/:id")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/client-scopes/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/client-scopes/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/client-scopes/:id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/client-scopes/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/client-scopes/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/client-scopes/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/client-scopes/:id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/client-scopes/:id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/client-scopes/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/client-scopes/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/client-scopes/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/client-scopes/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/client-scopes/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/client-scopes/:id
http DELETE {{baseUrl}}/:realm/client-scopes/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm
{{baseUrl}}/:realm/client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes"

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}}/:realm/client-scopes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes"

	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/:realm/client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes"))
    .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}}/:realm/client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes")
  .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}}/:realm/client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/client-scopes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes';
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}}/:realm/client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes',
  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}}/:realm/client-scopes'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes');

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}}/:realm/client-scopes'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes';
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}}/:realm/client-scopes"]
                                                       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}}/:realm/client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes",
  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}}/:realm/client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes")

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/:realm/client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes";

    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}}/:realm/client-scopes
http GET {{baseUrl}}/:realm/client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes")! 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 Get representation of the client scope
{{baseUrl}}/:realm/client-scopes/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/: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/:realm/client-scopes/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/client-scopes/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/: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}}/:realm/client-scopes/: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}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/: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}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/: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/:realm/client-scopes/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/: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}}/:realm/client-scopes/:id
http GET {{baseUrl}}/:realm/client-scopes/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/: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()
PUT Update the client scope
{{baseUrl}}/:realm/client-scopes/:id
BODY json

{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/client-scopes/:id" {:content-type :json
                                                                    :form-params {:attributes {}
                                                                                  :description ""
                                                                                  :id ""
                                                                                  :name ""
                                                                                  :protocol ""
                                                                                  :protocolMappers [{:config {}
                                                                                                     :id ""
                                                                                                     :name ""
                                                                                                     :protocol ""
                                                                                                     :protocolMapper ""}]}})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id"),
    Content = new StringContent("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id"

	payload := strings.NewReader("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/client-scopes/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 230

{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/client-scopes/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/client-scopes/:id")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  attributes: {},
  description: '',
  id: '',
  name: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/client-scopes/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/client-scopes/:id',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    description: '',
    id: '',
    name: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}'
};

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}}/:realm/client-scopes/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": {},\n  "description": "",\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  attributes: {},
  description: '',
  id: '',
  name: '',
  protocol: '',
  protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/client-scopes/:id',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: {},
    description: '',
    id: '',
    name: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/client-scopes/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: {},
  description: '',
  id: '',
  name: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/client-scopes/:id',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    description: '',
    id: '',
    name: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}'
};

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 = @{ @"attributes": @{  },
                              @"description": @"",
                              @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMappers": @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/client-scopes/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'attributes' => [
        
    ],
    'description' => '',
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMappers' => [
        [
                'config' => [
                                
                ],
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/client-scopes/:id', [
  'body' => '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'description' => '',
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'description' => '',
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/client-scopes/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id"

payload = {
    "attributes": {},
    "description": "",
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMappers": [
        {
            "config": {},
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id"

payload <- "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/client-scopes/:id') do |req|
  req.body = "{\n  \"attributes\": {},\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id";

    let payload = json!({
        "attributes": json!({}),
        "description": "",
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMappers": (
            json!({
                "config": json!({}),
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/client-scopes/:id \
  --header 'content-type: application/json' \
  --data '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}'
echo '{
  "attributes": {},
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ]
}' |  \
  http PUT {{baseUrl}}/:realm/client-scopes/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": {},\n  "description": "",\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [],
  "description": "",
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMappers": [
    [
      "config": [],
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Create JSON with payload of example access token
{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token"

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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token"

	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/:realm/clients/:id/evaluate-scopes/generate-example-access-token HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token"))
    .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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token")
  .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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token';
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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/evaluate-scopes/generate-example-access-token',
  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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token');

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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token';
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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token"]
                                                       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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token",
  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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/evaluate-scopes/generate-example-access-token")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token")

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/:realm/clients/:id/evaluate-scopes/generate-example-access-token') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token";

    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}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token
http GET {{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/generate-example-access-token")! 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 Create a new client Client’s client_id must be unique!
{{baseUrl}}/:realm/clients
BODY json

{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients");

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  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients" {:content-type :json
                                                           :form-params {:access {}
                                                                         :adminUrl ""
                                                                         :alwaysDisplayInConsole false
                                                                         :attributes {}
                                                                         :authenticationFlowBindingOverrides {}
                                                                         :authorizationServicesEnabled false
                                                                         :authorizationSettings {:allowRemoteResourceManagement false
                                                                                                 :clientId ""
                                                                                                 :decisionStrategy ""
                                                                                                 :id ""
                                                                                                 :name ""
                                                                                                 :policies [{:config {}
                                                                                                             :decisionStrategy ""
                                                                                                             :description ""
                                                                                                             :id ""
                                                                                                             :logic ""
                                                                                                             :name ""
                                                                                                             :owner ""
                                                                                                             :policies []
                                                                                                             :resources []
                                                                                                             :resourcesData [{:attributes {}
                                                                                                                              :displayName ""
                                                                                                                              :icon_uri ""
                                                                                                                              :id ""
                                                                                                                              :name ""
                                                                                                                              :ownerManagedAccess false
                                                                                                                              :scopes [{:displayName ""
                                                                                                                                        :iconUri ""
                                                                                                                                        :id ""
                                                                                                                                        :name ""
                                                                                                                                        :policies []
                                                                                                                                        :resources []}]
                                                                                                                              :type ""
                                                                                                                              :uris []}]
                                                                                                             :scopes []
                                                                                                             :scopesData [{}]
                                                                                                             :type ""}]
                                                                                                 :policyEnforcementMode ""
                                                                                                 :resources [{}]
                                                                                                 :scopes [{}]}
                                                                         :baseUrl ""
                                                                         :bearerOnly false
                                                                         :clientAuthenticatorType ""
                                                                         :clientId ""
                                                                         :consentRequired false
                                                                         :defaultClientScopes []
                                                                         :defaultRoles []
                                                                         :description ""
                                                                         :directAccessGrantsEnabled false
                                                                         :enabled false
                                                                         :frontchannelLogout false
                                                                         :fullScopeAllowed false
                                                                         :id ""
                                                                         :implicitFlowEnabled false
                                                                         :name ""
                                                                         :nodeReRegistrationTimeout 0
                                                                         :notBefore 0
                                                                         :optionalClientScopes []
                                                                         :origin ""
                                                                         :protocol ""
                                                                         :protocolMappers [{:config {}
                                                                                            :id ""
                                                                                            :name ""
                                                                                            :protocol ""
                                                                                            :protocolMapper ""}]
                                                                         :publicClient false
                                                                         :redirectUris []
                                                                         :registeredNodes {}
                                                                         :registrationAccessToken ""
                                                                         :rootUrl ""
                                                                         :secret ""
                                                                         :serviceAccountsEnabled false
                                                                         :standardFlowEnabled false
                                                                         :surrogateAuthRequired false
                                                                         :webOrigins []}})
require "http/client"

url = "{{baseUrl}}/:realm/clients"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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}}/:realm/clients"),
    Content = new StringContent("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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}}/:realm/clients");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients"

	payload := strings.NewReader("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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/:realm/clients HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2196

{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients")
  .header("content-type", "application/json")
  .body("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}")
  .asString();
const data = JSON.stringify({
  access: {},
  adminUrl: '',
  alwaysDisplayInConsole: false,
  attributes: {},
  authenticationFlowBindingOverrides: {},
  authorizationServicesEnabled: false,
  authorizationSettings: {
    allowRemoteResourceManagement: false,
    clientId: '',
    decisionStrategy: '',
    id: '',
    name: '',
    policies: [
      {
        config: {},
        decisionStrategy: '',
        description: '',
        id: '',
        logic: '',
        name: '',
        owner: '',
        policies: [],
        resources: [],
        resourcesData: [
          {
            attributes: {},
            displayName: '',
            icon_uri: '',
            id: '',
            name: '',
            ownerManagedAccess: false,
            scopes: [
              {
                displayName: '',
                iconUri: '',
                id: '',
                name: '',
                policies: [],
                resources: []
              }
            ],
            type: '',
            uris: []
          }
        ],
        scopes: [],
        scopesData: [
          {}
        ],
        type: ''
      }
    ],
    policyEnforcementMode: '',
    resources: [
      {}
    ],
    scopes: [
      {}
    ]
  },
  baseUrl: '',
  bearerOnly: false,
  clientAuthenticatorType: '',
  clientId: '',
  consentRequired: false,
  defaultClientScopes: [],
  defaultRoles: [],
  description: '',
  directAccessGrantsEnabled: false,
  enabled: false,
  frontchannelLogout: false,
  fullScopeAllowed: false,
  id: '',
  implicitFlowEnabled: false,
  name: '',
  nodeReRegistrationTimeout: 0,
  notBefore: 0,
  optionalClientScopes: [],
  origin: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ],
  publicClient: false,
  redirectUris: [],
  registeredNodes: {},
  registrationAccessToken: '',
  rootUrl: '',
  secret: '',
  serviceAccountsEnabled: false,
  standardFlowEnabled: false,
  surrogateAuthRequired: false,
  webOrigins: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    adminUrl: '',
    alwaysDisplayInConsole: false,
    attributes: {},
    authenticationFlowBindingOverrides: {},
    authorizationServicesEnabled: false,
    authorizationSettings: {
      allowRemoteResourceManagement: false,
      clientId: '',
      decisionStrategy: '',
      id: '',
      name: '',
      policies: [
        {
          config: {},
          decisionStrategy: '',
          description: '',
          id: '',
          logic: '',
          name: '',
          owner: '',
          policies: [],
          resources: [],
          resourcesData: [
            {
              attributes: {},
              displayName: '',
              icon_uri: '',
              id: '',
              name: '',
              ownerManagedAccess: false,
              scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
              type: '',
              uris: []
            }
          ],
          scopes: [],
          scopesData: [{}],
          type: ''
        }
      ],
      policyEnforcementMode: '',
      resources: [{}],
      scopes: [{}]
    },
    baseUrl: '',
    bearerOnly: false,
    clientAuthenticatorType: '',
    clientId: '',
    consentRequired: false,
    defaultClientScopes: [],
    defaultRoles: [],
    description: '',
    directAccessGrantsEnabled: false,
    enabled: false,
    frontchannelLogout: false,
    fullScopeAllowed: false,
    id: '',
    implicitFlowEnabled: false,
    name: '',
    nodeReRegistrationTimeout: 0,
    notBefore: 0,
    optionalClientScopes: [],
    origin: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
    publicClient: false,
    redirectUris: [],
    registeredNodes: {},
    registrationAccessToken: '',
    rootUrl: '',
    secret: '',
    serviceAccountsEnabled: false,
    standardFlowEnabled: false,
    surrogateAuthRequired: false,
    webOrigins: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}'
};

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}}/:realm/clients',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access": {},\n  "adminUrl": "",\n  "alwaysDisplayInConsole": false,\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "authorizationServicesEnabled": false,\n  "authorizationSettings": {\n    "allowRemoteResourceManagement": false,\n    "clientId": "",\n    "decisionStrategy": "",\n    "id": "",\n    "name": "",\n    "policies": [\n      {\n        "config": {},\n        "decisionStrategy": "",\n        "description": "",\n        "id": "",\n        "logic": "",\n        "name": "",\n        "owner": "",\n        "policies": [],\n        "resources": [],\n        "resourcesData": [\n          {\n            "attributes": {},\n            "displayName": "",\n            "icon_uri": "",\n            "id": "",\n            "name": "",\n            "ownerManagedAccess": false,\n            "scopes": [\n              {\n                "displayName": "",\n                "iconUri": "",\n                "id": "",\n                "name": "",\n                "policies": [],\n                "resources": []\n              }\n            ],\n            "type": "",\n            "uris": []\n          }\n        ],\n        "scopes": [],\n        "scopesData": [\n          {}\n        ],\n        "type": ""\n      }\n    ],\n    "policyEnforcementMode": "",\n    "resources": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ]\n  },\n  "baseUrl": "",\n  "bearerOnly": false,\n  "clientAuthenticatorType": "",\n  "clientId": "",\n  "consentRequired": false,\n  "defaultClientScopes": [],\n  "defaultRoles": [],\n  "description": "",\n  "directAccessGrantsEnabled": false,\n  "enabled": false,\n  "frontchannelLogout": false,\n  "fullScopeAllowed": false,\n  "id": "",\n  "implicitFlowEnabled": false,\n  "name": "",\n  "nodeReRegistrationTimeout": 0,\n  "notBefore": 0,\n  "optionalClientScopes": [],\n  "origin": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ],\n  "publicClient": false,\n  "redirectUris": [],\n  "registeredNodes": {},\n  "registrationAccessToken": "",\n  "rootUrl": "",\n  "secret": "",\n  "serviceAccountsEnabled": false,\n  "standardFlowEnabled": false,\n  "surrogateAuthRequired": false,\n  "webOrigins": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients")
  .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/:realm/clients',
  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({
  access: {},
  adminUrl: '',
  alwaysDisplayInConsole: false,
  attributes: {},
  authenticationFlowBindingOverrides: {},
  authorizationServicesEnabled: false,
  authorizationSettings: {
    allowRemoteResourceManagement: false,
    clientId: '',
    decisionStrategy: '',
    id: '',
    name: '',
    policies: [
      {
        config: {},
        decisionStrategy: '',
        description: '',
        id: '',
        logic: '',
        name: '',
        owner: '',
        policies: [],
        resources: [],
        resourcesData: [
          {
            attributes: {},
            displayName: '',
            icon_uri: '',
            id: '',
            name: '',
            ownerManagedAccess: false,
            scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
            type: '',
            uris: []
          }
        ],
        scopes: [],
        scopesData: [{}],
        type: ''
      }
    ],
    policyEnforcementMode: '',
    resources: [{}],
    scopes: [{}]
  },
  baseUrl: '',
  bearerOnly: false,
  clientAuthenticatorType: '',
  clientId: '',
  consentRequired: false,
  defaultClientScopes: [],
  defaultRoles: [],
  description: '',
  directAccessGrantsEnabled: false,
  enabled: false,
  frontchannelLogout: false,
  fullScopeAllowed: false,
  id: '',
  implicitFlowEnabled: false,
  name: '',
  nodeReRegistrationTimeout: 0,
  notBefore: 0,
  optionalClientScopes: [],
  origin: '',
  protocol: '',
  protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
  publicClient: false,
  redirectUris: [],
  registeredNodes: {},
  registrationAccessToken: '',
  rootUrl: '',
  secret: '',
  serviceAccountsEnabled: false,
  standardFlowEnabled: false,
  surrogateAuthRequired: false,
  webOrigins: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients',
  headers: {'content-type': 'application/json'},
  body: {
    access: {},
    adminUrl: '',
    alwaysDisplayInConsole: false,
    attributes: {},
    authenticationFlowBindingOverrides: {},
    authorizationServicesEnabled: false,
    authorizationSettings: {
      allowRemoteResourceManagement: false,
      clientId: '',
      decisionStrategy: '',
      id: '',
      name: '',
      policies: [
        {
          config: {},
          decisionStrategy: '',
          description: '',
          id: '',
          logic: '',
          name: '',
          owner: '',
          policies: [],
          resources: [],
          resourcesData: [
            {
              attributes: {},
              displayName: '',
              icon_uri: '',
              id: '',
              name: '',
              ownerManagedAccess: false,
              scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
              type: '',
              uris: []
            }
          ],
          scopes: [],
          scopesData: [{}],
          type: ''
        }
      ],
      policyEnforcementMode: '',
      resources: [{}],
      scopes: [{}]
    },
    baseUrl: '',
    bearerOnly: false,
    clientAuthenticatorType: '',
    clientId: '',
    consentRequired: false,
    defaultClientScopes: [],
    defaultRoles: [],
    description: '',
    directAccessGrantsEnabled: false,
    enabled: false,
    frontchannelLogout: false,
    fullScopeAllowed: false,
    id: '',
    implicitFlowEnabled: false,
    name: '',
    nodeReRegistrationTimeout: 0,
    notBefore: 0,
    optionalClientScopes: [],
    origin: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
    publicClient: false,
    redirectUris: [],
    registeredNodes: {},
    registrationAccessToken: '',
    rootUrl: '',
    secret: '',
    serviceAccountsEnabled: false,
    standardFlowEnabled: false,
    surrogateAuthRequired: false,
    webOrigins: []
  },
  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}}/:realm/clients');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  access: {},
  adminUrl: '',
  alwaysDisplayInConsole: false,
  attributes: {},
  authenticationFlowBindingOverrides: {},
  authorizationServicesEnabled: false,
  authorizationSettings: {
    allowRemoteResourceManagement: false,
    clientId: '',
    decisionStrategy: '',
    id: '',
    name: '',
    policies: [
      {
        config: {},
        decisionStrategy: '',
        description: '',
        id: '',
        logic: '',
        name: '',
        owner: '',
        policies: [],
        resources: [],
        resourcesData: [
          {
            attributes: {},
            displayName: '',
            icon_uri: '',
            id: '',
            name: '',
            ownerManagedAccess: false,
            scopes: [
              {
                displayName: '',
                iconUri: '',
                id: '',
                name: '',
                policies: [],
                resources: []
              }
            ],
            type: '',
            uris: []
          }
        ],
        scopes: [],
        scopesData: [
          {}
        ],
        type: ''
      }
    ],
    policyEnforcementMode: '',
    resources: [
      {}
    ],
    scopes: [
      {}
    ]
  },
  baseUrl: '',
  bearerOnly: false,
  clientAuthenticatorType: '',
  clientId: '',
  consentRequired: false,
  defaultClientScopes: [],
  defaultRoles: [],
  description: '',
  directAccessGrantsEnabled: false,
  enabled: false,
  frontchannelLogout: false,
  fullScopeAllowed: false,
  id: '',
  implicitFlowEnabled: false,
  name: '',
  nodeReRegistrationTimeout: 0,
  notBefore: 0,
  optionalClientScopes: [],
  origin: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ],
  publicClient: false,
  redirectUris: [],
  registeredNodes: {},
  registrationAccessToken: '',
  rootUrl: '',
  secret: '',
  serviceAccountsEnabled: false,
  standardFlowEnabled: false,
  surrogateAuthRequired: false,
  webOrigins: []
});

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}}/:realm/clients',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    adminUrl: '',
    alwaysDisplayInConsole: false,
    attributes: {},
    authenticationFlowBindingOverrides: {},
    authorizationServicesEnabled: false,
    authorizationSettings: {
      allowRemoteResourceManagement: false,
      clientId: '',
      decisionStrategy: '',
      id: '',
      name: '',
      policies: [
        {
          config: {},
          decisionStrategy: '',
          description: '',
          id: '',
          logic: '',
          name: '',
          owner: '',
          policies: [],
          resources: [],
          resourcesData: [
            {
              attributes: {},
              displayName: '',
              icon_uri: '',
              id: '',
              name: '',
              ownerManagedAccess: false,
              scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
              type: '',
              uris: []
            }
          ],
          scopes: [],
          scopesData: [{}],
          type: ''
        }
      ],
      policyEnforcementMode: '',
      resources: [{}],
      scopes: [{}]
    },
    baseUrl: '',
    bearerOnly: false,
    clientAuthenticatorType: '',
    clientId: '',
    consentRequired: false,
    defaultClientScopes: [],
    defaultRoles: [],
    description: '',
    directAccessGrantsEnabled: false,
    enabled: false,
    frontchannelLogout: false,
    fullScopeAllowed: false,
    id: '',
    implicitFlowEnabled: false,
    name: '',
    nodeReRegistrationTimeout: 0,
    notBefore: 0,
    optionalClientScopes: [],
    origin: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
    publicClient: false,
    redirectUris: [],
    registeredNodes: {},
    registrationAccessToken: '',
    rootUrl: '',
    secret: '',
    serviceAccountsEnabled: false,
    standardFlowEnabled: false,
    surrogateAuthRequired: false,
    webOrigins: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}'
};

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 = @{ @"access": @{  },
                              @"adminUrl": @"",
                              @"alwaysDisplayInConsole": @NO,
                              @"attributes": @{  },
                              @"authenticationFlowBindingOverrides": @{  },
                              @"authorizationServicesEnabled": @NO,
                              @"authorizationSettings": @{ @"allowRemoteResourceManagement": @NO, @"clientId": @"", @"decisionStrategy": @"", @"id": @"", @"name": @"", @"policies": @[ @{ @"config": @{  }, @"decisionStrategy": @"", @"description": @"", @"id": @"", @"logic": @"", @"name": @"", @"owner": @"", @"policies": @[  ], @"resources": @[  ], @"resourcesData": @[ @{ @"attributes": @{  }, @"displayName": @"", @"icon_uri": @"", @"id": @"", @"name": @"", @"ownerManagedAccess": @NO, @"scopes": @[ @{ @"displayName": @"", @"iconUri": @"", @"id": @"", @"name": @"", @"policies": @[  ], @"resources": @[  ] } ], @"type": @"", @"uris": @[  ] } ], @"scopes": @[  ], @"scopesData": @[ @{  } ], @"type": @"" } ], @"policyEnforcementMode": @"", @"resources": @[ @{  } ], @"scopes": @[ @{  } ] },
                              @"baseUrl": @"",
                              @"bearerOnly": @NO,
                              @"clientAuthenticatorType": @"",
                              @"clientId": @"",
                              @"consentRequired": @NO,
                              @"defaultClientScopes": @[  ],
                              @"defaultRoles": @[  ],
                              @"description": @"",
                              @"directAccessGrantsEnabled": @NO,
                              @"enabled": @NO,
                              @"frontchannelLogout": @NO,
                              @"fullScopeAllowed": @NO,
                              @"id": @"",
                              @"implicitFlowEnabled": @NO,
                              @"name": @"",
                              @"nodeReRegistrationTimeout": @0,
                              @"notBefore": @0,
                              @"optionalClientScopes": @[  ],
                              @"origin": @"",
                              @"protocol": @"",
                              @"protocolMappers": @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ],
                              @"publicClient": @NO,
                              @"redirectUris": @[  ],
                              @"registeredNodes": @{  },
                              @"registrationAccessToken": @"",
                              @"rootUrl": @"",
                              @"secret": @"",
                              @"serviceAccountsEnabled": @NO,
                              @"standardFlowEnabled": @NO,
                              @"surrogateAuthRequired": @NO,
                              @"webOrigins": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients"]
                                                       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}}/:realm/clients" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients",
  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([
    'access' => [
        
    ],
    'adminUrl' => '',
    'alwaysDisplayInConsole' => null,
    'attributes' => [
        
    ],
    'authenticationFlowBindingOverrides' => [
        
    ],
    'authorizationServicesEnabled' => null,
    'authorizationSettings' => [
        'allowRemoteResourceManagement' => null,
        'clientId' => '',
        'decisionStrategy' => '',
        'id' => '',
        'name' => '',
        'policies' => [
                [
                                'config' => [
                                                                
                                ],
                                'decisionStrategy' => '',
                                'description' => '',
                                'id' => '',
                                'logic' => '',
                                'name' => '',
                                'owner' => '',
                                'policies' => [
                                                                
                                ],
                                'resources' => [
                                                                
                                ],
                                'resourcesData' => [
                                                                [
                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayName' => '',
                                                                                                                                'icon_uri' => '',
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'scopes' => [
                                                                
                                ],
                                'scopesData' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'type' => ''
                ]
        ],
        'policyEnforcementMode' => '',
        'resources' => [
                [
                                
                ]
        ],
        'scopes' => [
                [
                                
                ]
        ]
    ],
    'baseUrl' => '',
    'bearerOnly' => null,
    'clientAuthenticatorType' => '',
    'clientId' => '',
    'consentRequired' => null,
    'defaultClientScopes' => [
        
    ],
    'defaultRoles' => [
        
    ],
    'description' => '',
    'directAccessGrantsEnabled' => null,
    'enabled' => null,
    'frontchannelLogout' => null,
    'fullScopeAllowed' => null,
    'id' => '',
    'implicitFlowEnabled' => null,
    'name' => '',
    'nodeReRegistrationTimeout' => 0,
    'notBefore' => 0,
    'optionalClientScopes' => [
        
    ],
    'origin' => '',
    'protocol' => '',
    'protocolMappers' => [
        [
                'config' => [
                                
                ],
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => ''
        ]
    ],
    'publicClient' => null,
    'redirectUris' => [
        
    ],
    'registeredNodes' => [
        
    ],
    'registrationAccessToken' => '',
    'rootUrl' => '',
    'secret' => '',
    'serviceAccountsEnabled' => null,
    'standardFlowEnabled' => null,
    'surrogateAuthRequired' => null,
    'webOrigins' => [
        
    ]
  ]),
  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}}/:realm/clients', [
  'body' => '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access' => [
    
  ],
  'adminUrl' => '',
  'alwaysDisplayInConsole' => null,
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'authorizationServicesEnabled' => null,
  'authorizationSettings' => [
    'allowRemoteResourceManagement' => null,
    'clientId' => '',
    'decisionStrategy' => '',
    'id' => '',
    'name' => '',
    'policies' => [
        [
                'config' => [
                                
                ],
                'decisionStrategy' => '',
                'description' => '',
                'id' => '',
                'logic' => '',
                'name' => '',
                'owner' => '',
                'policies' => [
                                
                ],
                'resources' => [
                                
                ],
                'resourcesData' => [
                                [
                                                                'attributes' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => '',
                                                                'icon_uri' => '',
                                                                'id' => '',
                                                                'name' => '',
                                                                'ownerManagedAccess' => null,
                                                                'scopes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'type' => '',
                                                                'uris' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'scopes' => [
                                
                ],
                'scopesData' => [
                                [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'policyEnforcementMode' => '',
    'resources' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ]
  ],
  'baseUrl' => '',
  'bearerOnly' => null,
  'clientAuthenticatorType' => '',
  'clientId' => '',
  'consentRequired' => null,
  'defaultClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'description' => '',
  'directAccessGrantsEnabled' => null,
  'enabled' => null,
  'frontchannelLogout' => null,
  'fullScopeAllowed' => null,
  'id' => '',
  'implicitFlowEnabled' => null,
  'name' => '',
  'nodeReRegistrationTimeout' => 0,
  'notBefore' => 0,
  'optionalClientScopes' => [
    
  ],
  'origin' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ],
  'publicClient' => null,
  'redirectUris' => [
    
  ],
  'registeredNodes' => [
    
  ],
  'registrationAccessToken' => '',
  'rootUrl' => '',
  'secret' => '',
  'serviceAccountsEnabled' => null,
  'standardFlowEnabled' => null,
  'surrogateAuthRequired' => null,
  'webOrigins' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'access' => [
    
  ],
  'adminUrl' => '',
  'alwaysDisplayInConsole' => null,
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'authorizationServicesEnabled' => null,
  'authorizationSettings' => [
    'allowRemoteResourceManagement' => null,
    'clientId' => '',
    'decisionStrategy' => '',
    'id' => '',
    'name' => '',
    'policies' => [
        [
                'config' => [
                                
                ],
                'decisionStrategy' => '',
                'description' => '',
                'id' => '',
                'logic' => '',
                'name' => '',
                'owner' => '',
                'policies' => [
                                
                ],
                'resources' => [
                                
                ],
                'resourcesData' => [
                                [
                                                                'attributes' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => '',
                                                                'icon_uri' => '',
                                                                'id' => '',
                                                                'name' => '',
                                                                'ownerManagedAccess' => null,
                                                                'scopes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'type' => '',
                                                                'uris' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'scopes' => [
                                
                ],
                'scopesData' => [
                                [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'policyEnforcementMode' => '',
    'resources' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ]
  ],
  'baseUrl' => '',
  'bearerOnly' => null,
  'clientAuthenticatorType' => '',
  'clientId' => '',
  'consentRequired' => null,
  'defaultClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'description' => '',
  'directAccessGrantsEnabled' => null,
  'enabled' => null,
  'frontchannelLogout' => null,
  'fullScopeAllowed' => null,
  'id' => '',
  'implicitFlowEnabled' => null,
  'name' => '',
  'nodeReRegistrationTimeout' => 0,
  'notBefore' => 0,
  'optionalClientScopes' => [
    
  ],
  'origin' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ],
  'publicClient' => null,
  'redirectUris' => [
    
  ],
  'registeredNodes' => [
    
  ],
  'registrationAccessToken' => '',
  'rootUrl' => '',
  'secret' => '',
  'serviceAccountsEnabled' => null,
  'standardFlowEnabled' => null,
  'surrogateAuthRequired' => null,
  'webOrigins' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients');
$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}}/:realm/clients' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients"

payload = {
    "access": {},
    "adminUrl": "",
    "alwaysDisplayInConsole": False,
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "authorizationServicesEnabled": False,
    "authorizationSettings": {
        "allowRemoteResourceManagement": False,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
            {
                "config": {},
                "decisionStrategy": "",
                "description": "",
                "id": "",
                "logic": "",
                "name": "",
                "owner": "",
                "policies": [],
                "resources": [],
                "resourcesData": [
                    {
                        "attributes": {},
                        "displayName": "",
                        "icon_uri": "",
                        "id": "",
                        "name": "",
                        "ownerManagedAccess": False,
                        "scopes": [
                            {
                                "displayName": "",
                                "iconUri": "",
                                "id": "",
                                "name": "",
                                "policies": [],
                                "resources": []
                            }
                        ],
                        "type": "",
                        "uris": []
                    }
                ],
                "scopes": [],
                "scopesData": [{}],
                "type": ""
            }
        ],
        "policyEnforcementMode": "",
        "resources": [{}],
        "scopes": [{}]
    },
    "baseUrl": "",
    "bearerOnly": False,
    "clientAuthenticatorType": "",
    "clientId": "",
    "consentRequired": False,
    "defaultClientScopes": [],
    "defaultRoles": [],
    "description": "",
    "directAccessGrantsEnabled": False,
    "enabled": False,
    "frontchannelLogout": False,
    "fullScopeAllowed": False,
    "id": "",
    "implicitFlowEnabled": False,
    "name": "",
    "nodeReRegistrationTimeout": 0,
    "notBefore": 0,
    "optionalClientScopes": [],
    "origin": "",
    "protocol": "",
    "protocolMappers": [
        {
            "config": {},
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": ""
        }
    ],
    "publicClient": False,
    "redirectUris": [],
    "registeredNodes": {},
    "registrationAccessToken": "",
    "rootUrl": "",
    "secret": "",
    "serviceAccountsEnabled": False,
    "standardFlowEnabled": False,
    "surrogateAuthRequired": False,
    "webOrigins": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients"

payload <- "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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}}/:realm/clients")

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  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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/:realm/clients') do |req|
  req.body = "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients";

    let payload = json!({
        "access": json!({}),
        "adminUrl": "",
        "alwaysDisplayInConsole": false,
        "attributes": json!({}),
        "authenticationFlowBindingOverrides": json!({}),
        "authorizationServicesEnabled": false,
        "authorizationSettings": json!({
            "allowRemoteResourceManagement": false,
            "clientId": "",
            "decisionStrategy": "",
            "id": "",
            "name": "",
            "policies": (
                json!({
                    "config": json!({}),
                    "decisionStrategy": "",
                    "description": "",
                    "id": "",
                    "logic": "",
                    "name": "",
                    "owner": "",
                    "policies": (),
                    "resources": (),
                    "resourcesData": (
                        json!({
                            "attributes": json!({}),
                            "displayName": "",
                            "icon_uri": "",
                            "id": "",
                            "name": "",
                            "ownerManagedAccess": false,
                            "scopes": (
                                json!({
                                    "displayName": "",
                                    "iconUri": "",
                                    "id": "",
                                    "name": "",
                                    "policies": (),
                                    "resources": ()
                                })
                            ),
                            "type": "",
                            "uris": ()
                        })
                    ),
                    "scopes": (),
                    "scopesData": (json!({})),
                    "type": ""
                })
            ),
            "policyEnforcementMode": "",
            "resources": (json!({})),
            "scopes": (json!({}))
        }),
        "baseUrl": "",
        "bearerOnly": false,
        "clientAuthenticatorType": "",
        "clientId": "",
        "consentRequired": false,
        "defaultClientScopes": (),
        "defaultRoles": (),
        "description": "",
        "directAccessGrantsEnabled": false,
        "enabled": false,
        "frontchannelLogout": false,
        "fullScopeAllowed": false,
        "id": "",
        "implicitFlowEnabled": false,
        "name": "",
        "nodeReRegistrationTimeout": 0,
        "notBefore": 0,
        "optionalClientScopes": (),
        "origin": "",
        "protocol": "",
        "protocolMappers": (
            json!({
                "config": json!({}),
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": ""
            })
        ),
        "publicClient": false,
        "redirectUris": (),
        "registeredNodes": json!({}),
        "registrationAccessToken": "",
        "rootUrl": "",
        "secret": "",
        "serviceAccountsEnabled": false,
        "standardFlowEnabled": false,
        "surrogateAuthRequired": false,
        "webOrigins": ()
    });

    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}}/:realm/clients \
  --header 'content-type: application/json' \
  --data '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}'
echo '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}' |  \
  http POST {{baseUrl}}/:realm/clients \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "access": {},\n  "adminUrl": "",\n  "alwaysDisplayInConsole": false,\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "authorizationServicesEnabled": false,\n  "authorizationSettings": {\n    "allowRemoteResourceManagement": false,\n    "clientId": "",\n    "decisionStrategy": "",\n    "id": "",\n    "name": "",\n    "policies": [\n      {\n        "config": {},\n        "decisionStrategy": "",\n        "description": "",\n        "id": "",\n        "logic": "",\n        "name": "",\n        "owner": "",\n        "policies": [],\n        "resources": [],\n        "resourcesData": [\n          {\n            "attributes": {},\n            "displayName": "",\n            "icon_uri": "",\n            "id": "",\n            "name": "",\n            "ownerManagedAccess": false,\n            "scopes": [\n              {\n                "displayName": "",\n                "iconUri": "",\n                "id": "",\n                "name": "",\n                "policies": [],\n                "resources": []\n              }\n            ],\n            "type": "",\n            "uris": []\n          }\n        ],\n        "scopes": [],\n        "scopesData": [\n          {}\n        ],\n        "type": ""\n      }\n    ],\n    "policyEnforcementMode": "",\n    "resources": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ]\n  },\n  "baseUrl": "",\n  "bearerOnly": false,\n  "clientAuthenticatorType": "",\n  "clientId": "",\n  "consentRequired": false,\n  "defaultClientScopes": [],\n  "defaultRoles": [],\n  "description": "",\n  "directAccessGrantsEnabled": false,\n  "enabled": false,\n  "frontchannelLogout": false,\n  "fullScopeAllowed": false,\n  "id": "",\n  "implicitFlowEnabled": false,\n  "name": "",\n  "nodeReRegistrationTimeout": 0,\n  "notBefore": 0,\n  "optionalClientScopes": [],\n  "origin": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ],\n  "publicClient": false,\n  "redirectUris": [],\n  "registeredNodes": {},\n  "registrationAccessToken": "",\n  "rootUrl": "",\n  "secret": "",\n  "serviceAccountsEnabled": false,\n  "standardFlowEnabled": false,\n  "surrogateAuthRequired": false,\n  "webOrigins": []\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access": [],
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": [],
  "authenticationFlowBindingOverrides": [],
  "authorizationServicesEnabled": false,
  "authorizationSettings": [
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      [
        "config": [],
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          [
            "attributes": [],
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              [
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              ]
            ],
            "type": "",
            "uris": []
          ]
        ],
        "scopes": [],
        "scopesData": [[]],
        "type": ""
      ]
    ],
    "policyEnforcementMode": "",
    "resources": [[]],
    "scopes": [[]]
  ],
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    [
      "config": [],
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    ]
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": [],
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the client
{{baseUrl}}/:realm/clients/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/clients/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/clients/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/clients/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/clients/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/clients/:id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/clients/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/clients/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/clients/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/clients/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/clients/:id
http DELETE {{baseUrl}}/:realm/clients/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Generate a new registration access token for the client
{{baseUrl}}/:realm/clients/:id/registration-access-token
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/registration-access-token");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/registration-access-token")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/registration-access-token"

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}}/:realm/clients/:id/registration-access-token"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/registration-access-token");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/registration-access-token"

	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/:realm/clients/:id/registration-access-token HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/registration-access-token")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/registration-access-token"))
    .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}}/:realm/clients/:id/registration-access-token")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/registration-access-token")
  .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}}/:realm/clients/:id/registration-access-token');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/registration-access-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/registration-access-token';
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}}/:realm/clients/:id/registration-access-token',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/registration-access-token")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/registration-access-token',
  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}}/:realm/clients/:id/registration-access-token'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clients/:id/registration-access-token');

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}}/:realm/clients/:id/registration-access-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/registration-access-token';
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}}/:realm/clients/:id/registration-access-token"]
                                                       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}}/:realm/clients/:id/registration-access-token" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/registration-access-token",
  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}}/:realm/clients/:id/registration-access-token');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/registration-access-token');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/registration-access-token');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/registration-access-token' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/registration-access-token' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clients/:id/registration-access-token")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/registration-access-token"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/registration-access-token"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/registration-access-token")

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/:realm/clients/:id/registration-access-token') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/registration-access-token";

    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}}/:realm/clients/:id/registration-access-token
http POST {{baseUrl}}/:realm/clients/:id/registration-access-token
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/registration-access-token
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/registration-access-token")! 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 Generate a new secret for the client
{{baseUrl}}/:realm/clients/:id/client-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/client-secret");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/client-secret")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/client-secret"

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}}/:realm/clients/:id/client-secret"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/client-secret");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/client-secret"

	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/:realm/clients/:id/client-secret HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/client-secret")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/client-secret"))
    .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}}/:realm/clients/:id/client-secret")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/client-secret")
  .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}}/:realm/clients/:id/client-secret');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/client-secret'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/client-secret';
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}}/:realm/clients/:id/client-secret',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/client-secret")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/client-secret',
  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}}/:realm/clients/:id/client-secret'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clients/:id/client-secret');

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}}/:realm/clients/:id/client-secret'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/client-secret';
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}}/:realm/clients/:id/client-secret"]
                                                       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}}/:realm/clients/:id/client-secret" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/client-secret",
  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}}/:realm/clients/:id/client-secret');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/client-secret');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/client-secret');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/client-secret' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/client-secret' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clients/:id/client-secret")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/client-secret"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/client-secret"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/client-secret")

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/:realm/clients/:id/client-secret') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/client-secret";

    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}}/:realm/clients/:id/client-secret
http POST {{baseUrl}}/:realm/clients/:id/client-secret
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/client-secret
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/client-secret")! 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 Get a user dedicated to the service account
{{baseUrl}}/:realm/clients/:id/service-account-user
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/service-account-user");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/service-account-user")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/service-account-user"

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}}/:realm/clients/:id/service-account-user"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/service-account-user");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/service-account-user"

	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/:realm/clients/:id/service-account-user HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/service-account-user")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/service-account-user"))
    .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}}/:realm/clients/:id/service-account-user")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/service-account-user")
  .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}}/:realm/clients/:id/service-account-user');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/service-account-user'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/service-account-user';
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}}/:realm/clients/:id/service-account-user',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/service-account-user")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/service-account-user',
  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}}/:realm/clients/:id/service-account-user'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/service-account-user');

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}}/:realm/clients/:id/service-account-user'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/service-account-user';
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}}/:realm/clients/:id/service-account-user"]
                                                       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}}/:realm/clients/:id/service-account-user" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/service-account-user",
  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}}/:realm/clients/:id/service-account-user');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/service-account-user');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/service-account-user');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/service-account-user' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/service-account-user' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/service-account-user")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/service-account-user"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/service-account-user"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/service-account-user")

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/:realm/clients/:id/service-account-user') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/service-account-user";

    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}}/:realm/clients/:id/service-account-user
http GET {{baseUrl}}/:realm/clients/:id/service-account-user
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/service-account-user
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/service-account-user")! 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 Get application offline session count Returns a number of offline user sessions associated with this client { -count-- number }
{{baseUrl}}/:realm/clients/:id/offline-session-count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/offline-session-count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/offline-session-count")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/offline-session-count"

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}}/:realm/clients/:id/offline-session-count"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/offline-session-count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/offline-session-count"

	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/:realm/clients/:id/offline-session-count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/offline-session-count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/offline-session-count"))
    .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}}/:realm/clients/:id/offline-session-count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/offline-session-count")
  .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}}/:realm/clients/:id/offline-session-count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/offline-session-count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/offline-session-count';
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}}/:realm/clients/:id/offline-session-count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/offline-session-count")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/offline-session-count',
  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}}/:realm/clients/:id/offline-session-count'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/offline-session-count');

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}}/:realm/clients/:id/offline-session-count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/offline-session-count';
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}}/:realm/clients/:id/offline-session-count"]
                                                       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}}/:realm/clients/:id/offline-session-count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/offline-session-count",
  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}}/:realm/clients/:id/offline-session-count');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/offline-session-count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/offline-session-count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/offline-session-count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/offline-session-count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/offline-session-count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/offline-session-count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/offline-session-count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/offline-session-count")

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/:realm/clients/:id/offline-session-count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/offline-session-count";

    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}}/:realm/clients/:id/offline-session-count
http GET {{baseUrl}}/:realm/clients/:id/offline-session-count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/offline-session-count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/offline-session-count")! 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 Get application session count Returns a number of user sessions associated with this client { -count-- number }
{{baseUrl}}/:realm/clients/:id/session-count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/session-count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/session-count")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/session-count"

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}}/:realm/clients/:id/session-count"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/session-count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/session-count"

	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/:realm/clients/:id/session-count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/session-count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/session-count"))
    .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}}/:realm/clients/:id/session-count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/session-count")
  .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}}/:realm/clients/:id/session-count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/session-count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/session-count';
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}}/:realm/clients/:id/session-count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/session-count")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/session-count',
  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}}/:realm/clients/:id/session-count'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/session-count');

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}}/:realm/clients/:id/session-count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/session-count';
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}}/:realm/clients/:id/session-count"]
                                                       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}}/:realm/clients/:id/session-count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/session-count",
  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}}/:realm/clients/:id/session-count');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/session-count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/session-count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/session-count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/session-count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/session-count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/session-count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/session-count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/session-count")

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/:realm/clients/:id/session-count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/session-count";

    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}}/:realm/clients/:id/session-count
http GET {{baseUrl}}/:realm/clients/:id/session-count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/session-count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/session-count")! 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 Get clients belonging to the realm Returns a list of clients belonging to the realm
{{baseUrl}}/:realm/clients
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients")
require "http/client"

url = "{{baseUrl}}/:realm/clients"

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}}/:realm/clients"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients"

	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/:realm/clients HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients"))
    .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}}/:realm/clients")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients")
  .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}}/:realm/clients');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/clients'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients';
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}}/:realm/clients',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients',
  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}}/:realm/clients'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients');

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}}/:realm/clients'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients';
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}}/:realm/clients"]
                                                       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}}/:realm/clients" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients",
  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}}/:realm/clients');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients")

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/:realm/clients') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients";

    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}}/:realm/clients
http GET {{baseUrl}}/:realm/clients
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients")! 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 Get default client scopes.
{{baseUrl}}/:realm/clients/:id/default-client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/default-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/default-client-scopes")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes"

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}}/:realm/clients/:id/default-client-scopes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/default-client-scopes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/default-client-scopes"

	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/:realm/clients/:id/default-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/default-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/default-client-scopes"))
    .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}}/:realm/clients/:id/default-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/default-client-scopes")
  .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}}/:realm/clients/:id/default-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/default-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/default-client-scopes';
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}}/:realm/clients/:id/default-client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/default-client-scopes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/default-client-scopes',
  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}}/:realm/clients/:id/default-client-scopes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/default-client-scopes');

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}}/:realm/clients/:id/default-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/default-client-scopes';
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}}/:realm/clients/:id/default-client-scopes"]
                                                       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}}/:realm/clients/:id/default-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/default-client-scopes",
  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}}/:realm/clients/:id/default-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/default-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/default-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/default-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/default-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/default-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/default-client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/default-client-scopes")

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/:realm/clients/:id/default-client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes";

    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}}/:realm/clients/:id/default-client-scopes
http GET {{baseUrl}}/:realm/clients/:id/default-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/default-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/default-client-scopes")! 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 Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him.
{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted"

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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted"

	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/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted"))
    .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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")
  .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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted';
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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted',
  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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted');

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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted';
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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted"]
                                                       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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted",
  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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")

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/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted";

    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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted
http GET {{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/granted")! 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 Get offline sessions for client Returns a list of offline user sessions associated with this client
{{baseUrl}}/:realm/clients/:id/offline-sessions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/offline-sessions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/offline-sessions")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/offline-sessions"

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}}/:realm/clients/:id/offline-sessions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/offline-sessions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/offline-sessions"

	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/:realm/clients/:id/offline-sessions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/offline-sessions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/offline-sessions"))
    .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}}/:realm/clients/:id/offline-sessions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/offline-sessions")
  .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}}/:realm/clients/:id/offline-sessions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/offline-sessions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/offline-sessions';
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}}/:realm/clients/:id/offline-sessions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/offline-sessions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/offline-sessions',
  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}}/:realm/clients/:id/offline-sessions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/offline-sessions');

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}}/:realm/clients/:id/offline-sessions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/offline-sessions';
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}}/:realm/clients/:id/offline-sessions"]
                                                       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}}/:realm/clients/:id/offline-sessions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/offline-sessions",
  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}}/:realm/clients/:id/offline-sessions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/offline-sessions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/offline-sessions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/offline-sessions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/offline-sessions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/offline-sessions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/offline-sessions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/offline-sessions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/offline-sessions")

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/:realm/clients/:id/offline-sessions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/offline-sessions";

    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}}/:realm/clients/:id/offline-sessions
http GET {{baseUrl}}/:realm/clients/:id/offline-sessions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/offline-sessions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/offline-sessions")! 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 Get optional client scopes.
{{baseUrl}}/:realm/clients/:id/optional-client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/optional-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/optional-client-scopes")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes"

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}}/:realm/clients/:id/optional-client-scopes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/optional-client-scopes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/optional-client-scopes"

	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/:realm/clients/:id/optional-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/optional-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/optional-client-scopes"))
    .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}}/:realm/clients/:id/optional-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/optional-client-scopes")
  .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}}/:realm/clients/:id/optional-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/optional-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/optional-client-scopes';
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}}/:realm/clients/:id/optional-client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/optional-client-scopes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/optional-client-scopes',
  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}}/:realm/clients/:id/optional-client-scopes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/optional-client-scopes');

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}}/:realm/clients/:id/optional-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/optional-client-scopes';
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}}/:realm/clients/:id/optional-client-scopes"]
                                                       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}}/:realm/clients/:id/optional-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/optional-client-scopes",
  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}}/:realm/clients/:id/optional-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/optional-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/optional-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/optional-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/optional-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/optional-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/optional-client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/optional-client-scopes")

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/:realm/clients/:id/optional-client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes";

    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}}/:realm/clients/:id/optional-client-scopes
http GET {{baseUrl}}/:realm/clients/:id/optional-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/optional-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/optional-client-scopes")! 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 Get representation of the client
{{baseUrl}}/:realm/clients/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id")
require "http/client"

url = "{{baseUrl}}/:realm/clients/: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}}/:realm/clients/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/: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/:realm/clients/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/: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}}/:realm/clients/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/: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}}/:realm/clients/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/clients/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/: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}}/:realm/clients/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/: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}}/:realm/clients/: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}}/:realm/clients/: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}}/:realm/clients/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/: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}}/:realm/clients/: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}}/:realm/clients/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/: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}}/:realm/clients/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/: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/:realm/clients/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/: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}}/:realm/clients/:id
http GET {{baseUrl}}/:realm/clients/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/: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 Get roles, which this client doesn’t have scope for and can’t have them in the accessToken issued for him.
{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"

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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"

	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/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"))
    .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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
  .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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted';
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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted',
  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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted');

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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted';
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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"]
                                                       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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted",
  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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")

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/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted";

    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}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted
http GET {{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")! 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 Get the client secret
{{baseUrl}}/:realm/clients/:id/client-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/client-secret");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/client-secret")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/client-secret"

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}}/:realm/clients/:id/client-secret"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/client-secret");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/client-secret"

	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/:realm/clients/:id/client-secret HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/client-secret")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/client-secret"))
    .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}}/:realm/clients/:id/client-secret")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/client-secret")
  .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}}/:realm/clients/:id/client-secret');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/client-secret'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/client-secret';
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}}/:realm/clients/:id/client-secret',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/client-secret")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/client-secret',
  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}}/:realm/clients/:id/client-secret'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/client-secret');

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}}/:realm/clients/:id/client-secret'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/client-secret';
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}}/:realm/clients/:id/client-secret"]
                                                       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}}/:realm/clients/:id/client-secret" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/client-secret",
  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}}/:realm/clients/:id/client-secret');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/client-secret');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/client-secret');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/client-secret' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/client-secret' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/client-secret")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/client-secret"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/client-secret"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/client-secret")

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/:realm/clients/:id/client-secret') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/client-secret";

    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}}/:realm/clients/:id/client-secret
http GET {{baseUrl}}/:realm/clients/:id/client-secret
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/client-secret
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/client-secret")! 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 Get user sessions for client Returns a list of user sessions associated with this client
{{baseUrl}}/:realm/clients/:id/user-sessions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/user-sessions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/user-sessions")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/user-sessions"

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}}/:realm/clients/:id/user-sessions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/user-sessions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/user-sessions"

	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/:realm/clients/:id/user-sessions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/user-sessions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/user-sessions"))
    .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}}/:realm/clients/:id/user-sessions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/user-sessions")
  .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}}/:realm/clients/:id/user-sessions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/user-sessions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/user-sessions';
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}}/:realm/clients/:id/user-sessions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/user-sessions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/user-sessions',
  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}}/:realm/clients/:id/user-sessions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/user-sessions');

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}}/:realm/clients/:id/user-sessions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/user-sessions';
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}}/:realm/clients/:id/user-sessions"]
                                                       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}}/:realm/clients/:id/user-sessions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/user-sessions",
  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}}/:realm/clients/:id/user-sessions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/user-sessions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/user-sessions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/user-sessions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/user-sessions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/user-sessions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/user-sessions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/user-sessions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/user-sessions")

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/:realm/clients/:id/user-sessions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/user-sessions";

    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}}/:realm/clients/:id/user-sessions
http GET {{baseUrl}}/:realm/clients/:id/user-sessions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/user-sessions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/user-sessions")! 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 Push the client’s revocation policy to its admin URL If the client has an admin URL, push revocation policy to it.
{{baseUrl}}/:realm/clients/:id/push-revocation
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/push-revocation");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/push-revocation")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/push-revocation"

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}}/:realm/clients/:id/push-revocation"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/push-revocation");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/push-revocation"

	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/:realm/clients/:id/push-revocation HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/push-revocation")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/push-revocation"))
    .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}}/:realm/clients/:id/push-revocation")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/push-revocation")
  .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}}/:realm/clients/:id/push-revocation');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/push-revocation'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/push-revocation';
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}}/:realm/clients/:id/push-revocation',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/push-revocation")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/push-revocation',
  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}}/:realm/clients/:id/push-revocation'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clients/:id/push-revocation');

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}}/:realm/clients/:id/push-revocation'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/push-revocation';
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}}/:realm/clients/:id/push-revocation"]
                                                       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}}/:realm/clients/:id/push-revocation" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/push-revocation",
  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}}/:realm/clients/:id/push-revocation');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/push-revocation');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/push-revocation');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/push-revocation' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/push-revocation' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clients/:id/push-revocation")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/push-revocation"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/push-revocation"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/push-revocation")

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/:realm/clients/:id/push-revocation') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/push-revocation";

    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}}/:realm/clients/:id/push-revocation
http POST {{baseUrl}}/:realm/clients/:id/push-revocation
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/push-revocation
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/push-revocation")! 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 Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak
{{baseUrl}}/:realm/clients/:id/nodes
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/nodes");

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, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/nodes" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/nodes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/:realm/clients/:id/nodes"),
    Content = new StringContent("{}")
    {
        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}}/:realm/clients/:id/nodes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/nodes"

	payload := strings.NewReader("{}")

	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/:realm/clients/:id/nodes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/nodes")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/nodes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/nodes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/nodes")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/nodes');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/nodes',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/nodes';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/:realm/clients/:id/nodes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/nodes")
  .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/:realm/clients/:id/nodes',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/nodes',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/:realm/clients/:id/nodes');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

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}}/:realm/clients/:id/nodes',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/nodes';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/nodes"]
                                                       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}}/:realm/clients/:id/nodes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/nodes",
  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([
    
  ]),
  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}}/:realm/clients/:id/nodes', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/nodes');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/nodes');
$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}}/:realm/clients/:id/nodes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/nodes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/nodes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/nodes"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/nodes"

payload <- "{}"

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}}/:realm/clients/:id/nodes")

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 = "{}"

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/:realm/clients/:id/nodes') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/nodes";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:realm/clients/:id/nodes \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/:realm/clients/:id/nodes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/nodes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/nodes")! 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 Return list of all protocol mappers, which will be used when generating tokens issued for particular client.
{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers"

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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers"

	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/:realm/clients/:id/evaluate-scopes/protocol-mappers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers"))
    .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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers")
  .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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers';
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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/evaluate-scopes/protocol-mappers',
  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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers');

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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers';
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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers"]
                                                       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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers",
  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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/evaluate-scopes/protocol-mappers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers")

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/:realm/clients/:id/evaluate-scopes/protocol-mappers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers";

    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}}/:realm/clients/:id/evaluate-scopes/protocol-mappers
http GET {{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/evaluate-scopes/protocol-mappers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Return object stating whether client Authorization permissions have been initialized or not and a reference (PUT)
{{baseUrl}}/:realm/clients/:id/management/permissions
BODY json

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/management/permissions");

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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/clients/:id/management/permissions" {:content-type :json
                                                                                     :form-params {:enabled false
                                                                                                   :resource ""
                                                                                                   :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/management/permissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/management/permissions"),
    Content = new StringContent("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/clients/:id/management/permissions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/management/permissions"

	payload := strings.NewReader("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/clients/:id/management/permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/clients/:id/management/permissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/management/permissions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/clients/:id/management/permissions")
  .header("content-type", "application/json")
  .body("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .asString();
const data = JSON.stringify({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/clients/:id/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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}}/:realm/clients/:id/management/permissions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/management/permissions',
  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({enabled: false, resource: '', scopePermissions: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/management/permissions',
  headers: {'content-type': 'application/json'},
  body: {enabled: false, resource: '', scopePermissions: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/clients/:id/management/permissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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 = @{ @"enabled": @NO,
                              @"resource": @"",
                              @"scopePermissions": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/management/permissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id/management/permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/management/permissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'enabled' => null,
    'resource' => '',
    'scopePermissions' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/clients/:id/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/management/permissions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/management/permissions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/clients/:id/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/management/permissions"

payload = {
    "enabled": False,
    "resource": "",
    "scopePermissions": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/management/permissions"

payload <- "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/management/permissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/clients/:id/management/permissions') do |req|
  req.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/clients/:id/management/permissions";

    let payload = json!({
        "enabled": false,
        "resource": "",
        "scopePermissions": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/clients/:id/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/:realm/clients/:id/management/permissions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/management/permissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enabled": false,
  "resource": "",
  "scopePermissions": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return object stating whether client Authorization permissions have been initialized or not and a reference
{{baseUrl}}/:realm/clients/:id/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/management/permissions")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/management/permissions"

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}}/:realm/clients/:id/management/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/management/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/management/permissions"

	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/:realm/clients/:id/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/management/permissions"))
    .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}}/:realm/clients/:id/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/management/permissions")
  .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}}/:realm/clients/:id/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/management/permissions';
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}}/:realm/clients/:id/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/management/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/management/permissions',
  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}}/:realm/clients/:id/management/permissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/management/permissions');

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}}/:realm/clients/:id/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/management/permissions';
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}}/:realm/clients/:id/management/permissions"]
                                                       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}}/:realm/clients/:id/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/management/permissions",
  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}}/:realm/clients/:id/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/management/permissions")

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/:realm/clients/:id/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/management/permissions";

    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}}/:realm/clients/:id/management/permissions
http GET {{baseUrl}}/:realm/clients/:id/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/management/permissions")! 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 Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes.
{{baseUrl}}/:realm/clients/:id/test-nodes-available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/test-nodes-available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/test-nodes-available")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/test-nodes-available"

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}}/:realm/clients/:id/test-nodes-available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/test-nodes-available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/test-nodes-available"

	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/:realm/clients/:id/test-nodes-available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/test-nodes-available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/test-nodes-available"))
    .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}}/:realm/clients/:id/test-nodes-available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/test-nodes-available")
  .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}}/:realm/clients/:id/test-nodes-available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/test-nodes-available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/test-nodes-available';
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}}/:realm/clients/:id/test-nodes-available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/test-nodes-available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/test-nodes-available',
  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}}/:realm/clients/:id/test-nodes-available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/test-nodes-available');

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}}/:realm/clients/:id/test-nodes-available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/test-nodes-available';
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}}/:realm/clients/:id/test-nodes-available"]
                                                       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}}/:realm/clients/:id/test-nodes-available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/test-nodes-available",
  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}}/:realm/clients/:id/test-nodes-available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/test-nodes-available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/test-nodes-available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/test-nodes-available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/test-nodes-available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/test-nodes-available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/test-nodes-available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/test-nodes-available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/test-nodes-available")

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/:realm/clients/:id/test-nodes-available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/test-nodes-available";

    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}}/:realm/clients/:id/test-nodes-available
http GET {{baseUrl}}/:realm/clients/:id/test-nodes-available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/test-nodes-available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/test-nodes-available")! 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 Unregister a cluster node from the client
{{baseUrl}}/:realm/clients/:id/nodes/:node
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/nodes/:node");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id/nodes/:node")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/nodes/:node"

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}}/:realm/clients/:id/nodes/:node"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/nodes/:node");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/nodes/:node"

	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/:realm/clients/:id/nodes/:node HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id/nodes/:node")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/nodes/:node"))
    .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}}/:realm/clients/:id/nodes/:node")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id/nodes/:node")
  .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}}/:realm/clients/:id/nodes/:node');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/nodes/:node'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/nodes/:node';
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}}/:realm/clients/:id/nodes/:node',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/nodes/:node")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/nodes/:node',
  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}}/:realm/clients/:id/nodes/:node'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id/nodes/:node');

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}}/:realm/clients/:id/nodes/:node'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/nodes/:node';
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}}/:realm/clients/:id/nodes/:node"]
                                                       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}}/:realm/clients/:id/nodes/:node" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/nodes/:node",
  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}}/:realm/clients/:id/nodes/:node');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/nodes/:node');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/nodes/:node');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/nodes/:node' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/nodes/:node' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/clients/:id/nodes/:node")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/nodes/:node"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/nodes/:node"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/nodes/:node")

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/:realm/clients/:id/nodes/:node') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/nodes/:node";

    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}}/:realm/clients/:id/nodes/:node
http DELETE {{baseUrl}}/:realm/clients/:id/nodes/:node
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/nodes/:node
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/nodes/:node")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update the client
{{baseUrl}}/:realm/clients/:id
BODY json

{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/clients/:id" {:content-type :json
                                                              :form-params {:access {}
                                                                            :adminUrl ""
                                                                            :alwaysDisplayInConsole false
                                                                            :attributes {}
                                                                            :authenticationFlowBindingOverrides {}
                                                                            :authorizationServicesEnabled false
                                                                            :authorizationSettings {:allowRemoteResourceManagement false
                                                                                                    :clientId ""
                                                                                                    :decisionStrategy ""
                                                                                                    :id ""
                                                                                                    :name ""
                                                                                                    :policies [{:config {}
                                                                                                                :decisionStrategy ""
                                                                                                                :description ""
                                                                                                                :id ""
                                                                                                                :logic ""
                                                                                                                :name ""
                                                                                                                :owner ""
                                                                                                                :policies []
                                                                                                                :resources []
                                                                                                                :resourcesData [{:attributes {}
                                                                                                                                 :displayName ""
                                                                                                                                 :icon_uri ""
                                                                                                                                 :id ""
                                                                                                                                 :name ""
                                                                                                                                 :ownerManagedAccess false
                                                                                                                                 :scopes [{:displayName ""
                                                                                                                                           :iconUri ""
                                                                                                                                           :id ""
                                                                                                                                           :name ""
                                                                                                                                           :policies []
                                                                                                                                           :resources []}]
                                                                                                                                 :type ""
                                                                                                                                 :uris []}]
                                                                                                                :scopes []
                                                                                                                :scopesData [{}]
                                                                                                                :type ""}]
                                                                                                    :policyEnforcementMode ""
                                                                                                    :resources [{}]
                                                                                                    :scopes [{}]}
                                                                            :baseUrl ""
                                                                            :bearerOnly false
                                                                            :clientAuthenticatorType ""
                                                                            :clientId ""
                                                                            :consentRequired false
                                                                            :defaultClientScopes []
                                                                            :defaultRoles []
                                                                            :description ""
                                                                            :directAccessGrantsEnabled false
                                                                            :enabled false
                                                                            :frontchannelLogout false
                                                                            :fullScopeAllowed false
                                                                            :id ""
                                                                            :implicitFlowEnabled false
                                                                            :name ""
                                                                            :nodeReRegistrationTimeout 0
                                                                            :notBefore 0
                                                                            :optionalClientScopes []
                                                                            :origin ""
                                                                            :protocol ""
                                                                            :protocolMappers [{:config {}
                                                                                               :id ""
                                                                                               :name ""
                                                                                               :protocol ""
                                                                                               :protocolMapper ""}]
                                                                            :publicClient false
                                                                            :redirectUris []
                                                                            :registeredNodes {}
                                                                            :registrationAccessToken ""
                                                                            :rootUrl ""
                                                                            :secret ""
                                                                            :serviceAccountsEnabled false
                                                                            :standardFlowEnabled false
                                                                            :surrogateAuthRequired false
                                                                            :webOrigins []}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id"),
    Content = new StringContent("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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}}/:realm/clients/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id"

	payload := strings.NewReader("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/clients/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2196

{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/clients/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/clients/:id")
  .header("content-type", "application/json")
  .body("{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}")
  .asString();
const data = JSON.stringify({
  access: {},
  adminUrl: '',
  alwaysDisplayInConsole: false,
  attributes: {},
  authenticationFlowBindingOverrides: {},
  authorizationServicesEnabled: false,
  authorizationSettings: {
    allowRemoteResourceManagement: false,
    clientId: '',
    decisionStrategy: '',
    id: '',
    name: '',
    policies: [
      {
        config: {},
        decisionStrategy: '',
        description: '',
        id: '',
        logic: '',
        name: '',
        owner: '',
        policies: [],
        resources: [],
        resourcesData: [
          {
            attributes: {},
            displayName: '',
            icon_uri: '',
            id: '',
            name: '',
            ownerManagedAccess: false,
            scopes: [
              {
                displayName: '',
                iconUri: '',
                id: '',
                name: '',
                policies: [],
                resources: []
              }
            ],
            type: '',
            uris: []
          }
        ],
        scopes: [],
        scopesData: [
          {}
        ],
        type: ''
      }
    ],
    policyEnforcementMode: '',
    resources: [
      {}
    ],
    scopes: [
      {}
    ]
  },
  baseUrl: '',
  bearerOnly: false,
  clientAuthenticatorType: '',
  clientId: '',
  consentRequired: false,
  defaultClientScopes: [],
  defaultRoles: [],
  description: '',
  directAccessGrantsEnabled: false,
  enabled: false,
  frontchannelLogout: false,
  fullScopeAllowed: false,
  id: '',
  implicitFlowEnabled: false,
  name: '',
  nodeReRegistrationTimeout: 0,
  notBefore: 0,
  optionalClientScopes: [],
  origin: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ],
  publicClient: false,
  redirectUris: [],
  registeredNodes: {},
  registrationAccessToken: '',
  rootUrl: '',
  secret: '',
  serviceAccountsEnabled: false,
  standardFlowEnabled: false,
  surrogateAuthRequired: false,
  webOrigins: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/clients/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    adminUrl: '',
    alwaysDisplayInConsole: false,
    attributes: {},
    authenticationFlowBindingOverrides: {},
    authorizationServicesEnabled: false,
    authorizationSettings: {
      allowRemoteResourceManagement: false,
      clientId: '',
      decisionStrategy: '',
      id: '',
      name: '',
      policies: [
        {
          config: {},
          decisionStrategy: '',
          description: '',
          id: '',
          logic: '',
          name: '',
          owner: '',
          policies: [],
          resources: [],
          resourcesData: [
            {
              attributes: {},
              displayName: '',
              icon_uri: '',
              id: '',
              name: '',
              ownerManagedAccess: false,
              scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
              type: '',
              uris: []
            }
          ],
          scopes: [],
          scopesData: [{}],
          type: ''
        }
      ],
      policyEnforcementMode: '',
      resources: [{}],
      scopes: [{}]
    },
    baseUrl: '',
    bearerOnly: false,
    clientAuthenticatorType: '',
    clientId: '',
    consentRequired: false,
    defaultClientScopes: [],
    defaultRoles: [],
    description: '',
    directAccessGrantsEnabled: false,
    enabled: false,
    frontchannelLogout: false,
    fullScopeAllowed: false,
    id: '',
    implicitFlowEnabled: false,
    name: '',
    nodeReRegistrationTimeout: 0,
    notBefore: 0,
    optionalClientScopes: [],
    origin: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
    publicClient: false,
    redirectUris: [],
    registeredNodes: {},
    registrationAccessToken: '',
    rootUrl: '',
    secret: '',
    serviceAccountsEnabled: false,
    standardFlowEnabled: false,
    surrogateAuthRequired: false,
    webOrigins: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}'
};

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}}/:realm/clients/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access": {},\n  "adminUrl": "",\n  "alwaysDisplayInConsole": false,\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "authorizationServicesEnabled": false,\n  "authorizationSettings": {\n    "allowRemoteResourceManagement": false,\n    "clientId": "",\n    "decisionStrategy": "",\n    "id": "",\n    "name": "",\n    "policies": [\n      {\n        "config": {},\n        "decisionStrategy": "",\n        "description": "",\n        "id": "",\n        "logic": "",\n        "name": "",\n        "owner": "",\n        "policies": [],\n        "resources": [],\n        "resourcesData": [\n          {\n            "attributes": {},\n            "displayName": "",\n            "icon_uri": "",\n            "id": "",\n            "name": "",\n            "ownerManagedAccess": false,\n            "scopes": [\n              {\n                "displayName": "",\n                "iconUri": "",\n                "id": "",\n                "name": "",\n                "policies": [],\n                "resources": []\n              }\n            ],\n            "type": "",\n            "uris": []\n          }\n        ],\n        "scopes": [],\n        "scopesData": [\n          {}\n        ],\n        "type": ""\n      }\n    ],\n    "policyEnforcementMode": "",\n    "resources": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ]\n  },\n  "baseUrl": "",\n  "bearerOnly": false,\n  "clientAuthenticatorType": "",\n  "clientId": "",\n  "consentRequired": false,\n  "defaultClientScopes": [],\n  "defaultRoles": [],\n  "description": "",\n  "directAccessGrantsEnabled": false,\n  "enabled": false,\n  "frontchannelLogout": false,\n  "fullScopeAllowed": false,\n  "id": "",\n  "implicitFlowEnabled": false,\n  "name": "",\n  "nodeReRegistrationTimeout": 0,\n  "notBefore": 0,\n  "optionalClientScopes": [],\n  "origin": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ],\n  "publicClient": false,\n  "redirectUris": [],\n  "registeredNodes": {},\n  "registrationAccessToken": "",\n  "rootUrl": "",\n  "secret": "",\n  "serviceAccountsEnabled": false,\n  "standardFlowEnabled": false,\n  "surrogateAuthRequired": false,\n  "webOrigins": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  access: {},
  adminUrl: '',
  alwaysDisplayInConsole: false,
  attributes: {},
  authenticationFlowBindingOverrides: {},
  authorizationServicesEnabled: false,
  authorizationSettings: {
    allowRemoteResourceManagement: false,
    clientId: '',
    decisionStrategy: '',
    id: '',
    name: '',
    policies: [
      {
        config: {},
        decisionStrategy: '',
        description: '',
        id: '',
        logic: '',
        name: '',
        owner: '',
        policies: [],
        resources: [],
        resourcesData: [
          {
            attributes: {},
            displayName: '',
            icon_uri: '',
            id: '',
            name: '',
            ownerManagedAccess: false,
            scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
            type: '',
            uris: []
          }
        ],
        scopes: [],
        scopesData: [{}],
        type: ''
      }
    ],
    policyEnforcementMode: '',
    resources: [{}],
    scopes: [{}]
  },
  baseUrl: '',
  bearerOnly: false,
  clientAuthenticatorType: '',
  clientId: '',
  consentRequired: false,
  defaultClientScopes: [],
  defaultRoles: [],
  description: '',
  directAccessGrantsEnabled: false,
  enabled: false,
  frontchannelLogout: false,
  fullScopeAllowed: false,
  id: '',
  implicitFlowEnabled: false,
  name: '',
  nodeReRegistrationTimeout: 0,
  notBefore: 0,
  optionalClientScopes: [],
  origin: '',
  protocol: '',
  protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
  publicClient: false,
  redirectUris: [],
  registeredNodes: {},
  registrationAccessToken: '',
  rootUrl: '',
  secret: '',
  serviceAccountsEnabled: false,
  standardFlowEnabled: false,
  surrogateAuthRequired: false,
  webOrigins: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id',
  headers: {'content-type': 'application/json'},
  body: {
    access: {},
    adminUrl: '',
    alwaysDisplayInConsole: false,
    attributes: {},
    authenticationFlowBindingOverrides: {},
    authorizationServicesEnabled: false,
    authorizationSettings: {
      allowRemoteResourceManagement: false,
      clientId: '',
      decisionStrategy: '',
      id: '',
      name: '',
      policies: [
        {
          config: {},
          decisionStrategy: '',
          description: '',
          id: '',
          logic: '',
          name: '',
          owner: '',
          policies: [],
          resources: [],
          resourcesData: [
            {
              attributes: {},
              displayName: '',
              icon_uri: '',
              id: '',
              name: '',
              ownerManagedAccess: false,
              scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
              type: '',
              uris: []
            }
          ],
          scopes: [],
          scopesData: [{}],
          type: ''
        }
      ],
      policyEnforcementMode: '',
      resources: [{}],
      scopes: [{}]
    },
    baseUrl: '',
    bearerOnly: false,
    clientAuthenticatorType: '',
    clientId: '',
    consentRequired: false,
    defaultClientScopes: [],
    defaultRoles: [],
    description: '',
    directAccessGrantsEnabled: false,
    enabled: false,
    frontchannelLogout: false,
    fullScopeAllowed: false,
    id: '',
    implicitFlowEnabled: false,
    name: '',
    nodeReRegistrationTimeout: 0,
    notBefore: 0,
    optionalClientScopes: [],
    origin: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
    publicClient: false,
    redirectUris: [],
    registeredNodes: {},
    registrationAccessToken: '',
    rootUrl: '',
    secret: '',
    serviceAccountsEnabled: false,
    standardFlowEnabled: false,
    surrogateAuthRequired: false,
    webOrigins: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/clients/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  access: {},
  adminUrl: '',
  alwaysDisplayInConsole: false,
  attributes: {},
  authenticationFlowBindingOverrides: {},
  authorizationServicesEnabled: false,
  authorizationSettings: {
    allowRemoteResourceManagement: false,
    clientId: '',
    decisionStrategy: '',
    id: '',
    name: '',
    policies: [
      {
        config: {},
        decisionStrategy: '',
        description: '',
        id: '',
        logic: '',
        name: '',
        owner: '',
        policies: [],
        resources: [],
        resourcesData: [
          {
            attributes: {},
            displayName: '',
            icon_uri: '',
            id: '',
            name: '',
            ownerManagedAccess: false,
            scopes: [
              {
                displayName: '',
                iconUri: '',
                id: '',
                name: '',
                policies: [],
                resources: []
              }
            ],
            type: '',
            uris: []
          }
        ],
        scopes: [],
        scopesData: [
          {}
        ],
        type: ''
      }
    ],
    policyEnforcementMode: '',
    resources: [
      {}
    ],
    scopes: [
      {}
    ]
  },
  baseUrl: '',
  bearerOnly: false,
  clientAuthenticatorType: '',
  clientId: '',
  consentRequired: false,
  defaultClientScopes: [],
  defaultRoles: [],
  description: '',
  directAccessGrantsEnabled: false,
  enabled: false,
  frontchannelLogout: false,
  fullScopeAllowed: false,
  id: '',
  implicitFlowEnabled: false,
  name: '',
  nodeReRegistrationTimeout: 0,
  notBefore: 0,
  optionalClientScopes: [],
  origin: '',
  protocol: '',
  protocolMappers: [
    {
      config: {},
      id: '',
      name: '',
      protocol: '',
      protocolMapper: ''
    }
  ],
  publicClient: false,
  redirectUris: [],
  registeredNodes: {},
  registrationAccessToken: '',
  rootUrl: '',
  secret: '',
  serviceAccountsEnabled: false,
  standardFlowEnabled: false,
  surrogateAuthRequired: false,
  webOrigins: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    adminUrl: '',
    alwaysDisplayInConsole: false,
    attributes: {},
    authenticationFlowBindingOverrides: {},
    authorizationServicesEnabled: false,
    authorizationSettings: {
      allowRemoteResourceManagement: false,
      clientId: '',
      decisionStrategy: '',
      id: '',
      name: '',
      policies: [
        {
          config: {},
          decisionStrategy: '',
          description: '',
          id: '',
          logic: '',
          name: '',
          owner: '',
          policies: [],
          resources: [],
          resourcesData: [
            {
              attributes: {},
              displayName: '',
              icon_uri: '',
              id: '',
              name: '',
              ownerManagedAccess: false,
              scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
              type: '',
              uris: []
            }
          ],
          scopes: [],
          scopesData: [{}],
          type: ''
        }
      ],
      policyEnforcementMode: '',
      resources: [{}],
      scopes: [{}]
    },
    baseUrl: '',
    bearerOnly: false,
    clientAuthenticatorType: '',
    clientId: '',
    consentRequired: false,
    defaultClientScopes: [],
    defaultRoles: [],
    description: '',
    directAccessGrantsEnabled: false,
    enabled: false,
    frontchannelLogout: false,
    fullScopeAllowed: false,
    id: '',
    implicitFlowEnabled: false,
    name: '',
    nodeReRegistrationTimeout: 0,
    notBefore: 0,
    optionalClientScopes: [],
    origin: '',
    protocol: '',
    protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
    publicClient: false,
    redirectUris: [],
    registeredNodes: {},
    registrationAccessToken: '',
    rootUrl: '',
    secret: '',
    serviceAccountsEnabled: false,
    standardFlowEnabled: false,
    surrogateAuthRequired: false,
    webOrigins: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}'
};

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 = @{ @"access": @{  },
                              @"adminUrl": @"",
                              @"alwaysDisplayInConsole": @NO,
                              @"attributes": @{  },
                              @"authenticationFlowBindingOverrides": @{  },
                              @"authorizationServicesEnabled": @NO,
                              @"authorizationSettings": @{ @"allowRemoteResourceManagement": @NO, @"clientId": @"", @"decisionStrategy": @"", @"id": @"", @"name": @"", @"policies": @[ @{ @"config": @{  }, @"decisionStrategy": @"", @"description": @"", @"id": @"", @"logic": @"", @"name": @"", @"owner": @"", @"policies": @[  ], @"resources": @[  ], @"resourcesData": @[ @{ @"attributes": @{  }, @"displayName": @"", @"icon_uri": @"", @"id": @"", @"name": @"", @"ownerManagedAccess": @NO, @"scopes": @[ @{ @"displayName": @"", @"iconUri": @"", @"id": @"", @"name": @"", @"policies": @[  ], @"resources": @[  ] } ], @"type": @"", @"uris": @[  ] } ], @"scopes": @[  ], @"scopesData": @[ @{  } ], @"type": @"" } ], @"policyEnforcementMode": @"", @"resources": @[ @{  } ], @"scopes": @[ @{  } ] },
                              @"baseUrl": @"",
                              @"bearerOnly": @NO,
                              @"clientAuthenticatorType": @"",
                              @"clientId": @"",
                              @"consentRequired": @NO,
                              @"defaultClientScopes": @[  ],
                              @"defaultRoles": @[  ],
                              @"description": @"",
                              @"directAccessGrantsEnabled": @NO,
                              @"enabled": @NO,
                              @"frontchannelLogout": @NO,
                              @"fullScopeAllowed": @NO,
                              @"id": @"",
                              @"implicitFlowEnabled": @NO,
                              @"name": @"",
                              @"nodeReRegistrationTimeout": @0,
                              @"notBefore": @0,
                              @"optionalClientScopes": @[  ],
                              @"origin": @"",
                              @"protocol": @"",
                              @"protocolMappers": @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ],
                              @"publicClient": @NO,
                              @"redirectUris": @[  ],
                              @"registeredNodes": @{  },
                              @"registrationAccessToken": @"",
                              @"rootUrl": @"",
                              @"secret": @"",
                              @"serviceAccountsEnabled": @NO,
                              @"standardFlowEnabled": @NO,
                              @"surrogateAuthRequired": @NO,
                              @"webOrigins": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'access' => [
        
    ],
    'adminUrl' => '',
    'alwaysDisplayInConsole' => null,
    'attributes' => [
        
    ],
    'authenticationFlowBindingOverrides' => [
        
    ],
    'authorizationServicesEnabled' => null,
    'authorizationSettings' => [
        'allowRemoteResourceManagement' => null,
        'clientId' => '',
        'decisionStrategy' => '',
        'id' => '',
        'name' => '',
        'policies' => [
                [
                                'config' => [
                                                                
                                ],
                                'decisionStrategy' => '',
                                'description' => '',
                                'id' => '',
                                'logic' => '',
                                'name' => '',
                                'owner' => '',
                                'policies' => [
                                                                
                                ],
                                'resources' => [
                                                                
                                ],
                                'resourcesData' => [
                                                                [
                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayName' => '',
                                                                                                                                'icon_uri' => '',
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => '',
                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'scopes' => [
                                                                
                                ],
                                'scopesData' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'type' => ''
                ]
        ],
        'policyEnforcementMode' => '',
        'resources' => [
                [
                                
                ]
        ],
        'scopes' => [
                [
                                
                ]
        ]
    ],
    'baseUrl' => '',
    'bearerOnly' => null,
    'clientAuthenticatorType' => '',
    'clientId' => '',
    'consentRequired' => null,
    'defaultClientScopes' => [
        
    ],
    'defaultRoles' => [
        
    ],
    'description' => '',
    'directAccessGrantsEnabled' => null,
    'enabled' => null,
    'frontchannelLogout' => null,
    'fullScopeAllowed' => null,
    'id' => '',
    'implicitFlowEnabled' => null,
    'name' => '',
    'nodeReRegistrationTimeout' => 0,
    'notBefore' => 0,
    'optionalClientScopes' => [
        
    ],
    'origin' => '',
    'protocol' => '',
    'protocolMappers' => [
        [
                'config' => [
                                
                ],
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => ''
        ]
    ],
    'publicClient' => null,
    'redirectUris' => [
        
    ],
    'registeredNodes' => [
        
    ],
    'registrationAccessToken' => '',
    'rootUrl' => '',
    'secret' => '',
    'serviceAccountsEnabled' => null,
    'standardFlowEnabled' => null,
    'surrogateAuthRequired' => null,
    'webOrigins' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/clients/:id', [
  'body' => '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access' => [
    
  ],
  'adminUrl' => '',
  'alwaysDisplayInConsole' => null,
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'authorizationServicesEnabled' => null,
  'authorizationSettings' => [
    'allowRemoteResourceManagement' => null,
    'clientId' => '',
    'decisionStrategy' => '',
    'id' => '',
    'name' => '',
    'policies' => [
        [
                'config' => [
                                
                ],
                'decisionStrategy' => '',
                'description' => '',
                'id' => '',
                'logic' => '',
                'name' => '',
                'owner' => '',
                'policies' => [
                                
                ],
                'resources' => [
                                
                ],
                'resourcesData' => [
                                [
                                                                'attributes' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => '',
                                                                'icon_uri' => '',
                                                                'id' => '',
                                                                'name' => '',
                                                                'ownerManagedAccess' => null,
                                                                'scopes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'type' => '',
                                                                'uris' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'scopes' => [
                                
                ],
                'scopesData' => [
                                [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'policyEnforcementMode' => '',
    'resources' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ]
  ],
  'baseUrl' => '',
  'bearerOnly' => null,
  'clientAuthenticatorType' => '',
  'clientId' => '',
  'consentRequired' => null,
  'defaultClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'description' => '',
  'directAccessGrantsEnabled' => null,
  'enabled' => null,
  'frontchannelLogout' => null,
  'fullScopeAllowed' => null,
  'id' => '',
  'implicitFlowEnabled' => null,
  'name' => '',
  'nodeReRegistrationTimeout' => 0,
  'notBefore' => 0,
  'optionalClientScopes' => [
    
  ],
  'origin' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ],
  'publicClient' => null,
  'redirectUris' => [
    
  ],
  'registeredNodes' => [
    
  ],
  'registrationAccessToken' => '',
  'rootUrl' => '',
  'secret' => '',
  'serviceAccountsEnabled' => null,
  'standardFlowEnabled' => null,
  'surrogateAuthRequired' => null,
  'webOrigins' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'access' => [
    
  ],
  'adminUrl' => '',
  'alwaysDisplayInConsole' => null,
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'authorizationServicesEnabled' => null,
  'authorizationSettings' => [
    'allowRemoteResourceManagement' => null,
    'clientId' => '',
    'decisionStrategy' => '',
    'id' => '',
    'name' => '',
    'policies' => [
        [
                'config' => [
                                
                ],
                'decisionStrategy' => '',
                'description' => '',
                'id' => '',
                'logic' => '',
                'name' => '',
                'owner' => '',
                'policies' => [
                                
                ],
                'resources' => [
                                
                ],
                'resourcesData' => [
                                [
                                                                'attributes' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => '',
                                                                'icon_uri' => '',
                                                                'id' => '',
                                                                'name' => '',
                                                                'ownerManagedAccess' => null,
                                                                'scopes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'type' => '',
                                                                'uris' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'scopes' => [
                                
                ],
                'scopesData' => [
                                [
                                                                
                                ]
                ],
                'type' => ''
        ]
    ],
    'policyEnforcementMode' => '',
    'resources' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ]
  ],
  'baseUrl' => '',
  'bearerOnly' => null,
  'clientAuthenticatorType' => '',
  'clientId' => '',
  'consentRequired' => null,
  'defaultClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'description' => '',
  'directAccessGrantsEnabled' => null,
  'enabled' => null,
  'frontchannelLogout' => null,
  'fullScopeAllowed' => null,
  'id' => '',
  'implicitFlowEnabled' => null,
  'name' => '',
  'nodeReRegistrationTimeout' => 0,
  'notBefore' => 0,
  'optionalClientScopes' => [
    
  ],
  'origin' => '',
  'protocol' => '',
  'protocolMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ],
  'publicClient' => null,
  'redirectUris' => [
    
  ],
  'registeredNodes' => [
    
  ],
  'registrationAccessToken' => '',
  'rootUrl' => '',
  'secret' => '',
  'serviceAccountsEnabled' => null,
  'standardFlowEnabled' => null,
  'surrogateAuthRequired' => null,
  'webOrigins' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/clients/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id"

payload = {
    "access": {},
    "adminUrl": "",
    "alwaysDisplayInConsole": False,
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "authorizationServicesEnabled": False,
    "authorizationSettings": {
        "allowRemoteResourceManagement": False,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
            {
                "config": {},
                "decisionStrategy": "",
                "description": "",
                "id": "",
                "logic": "",
                "name": "",
                "owner": "",
                "policies": [],
                "resources": [],
                "resourcesData": [
                    {
                        "attributes": {},
                        "displayName": "",
                        "icon_uri": "",
                        "id": "",
                        "name": "",
                        "ownerManagedAccess": False,
                        "scopes": [
                            {
                                "displayName": "",
                                "iconUri": "",
                                "id": "",
                                "name": "",
                                "policies": [],
                                "resources": []
                            }
                        ],
                        "type": "",
                        "uris": []
                    }
                ],
                "scopes": [],
                "scopesData": [{}],
                "type": ""
            }
        ],
        "policyEnforcementMode": "",
        "resources": [{}],
        "scopes": [{}]
    },
    "baseUrl": "",
    "bearerOnly": False,
    "clientAuthenticatorType": "",
    "clientId": "",
    "consentRequired": False,
    "defaultClientScopes": [],
    "defaultRoles": [],
    "description": "",
    "directAccessGrantsEnabled": False,
    "enabled": False,
    "frontchannelLogout": False,
    "fullScopeAllowed": False,
    "id": "",
    "implicitFlowEnabled": False,
    "name": "",
    "nodeReRegistrationTimeout": 0,
    "notBefore": 0,
    "optionalClientScopes": [],
    "origin": "",
    "protocol": "",
    "protocolMappers": [
        {
            "config": {},
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": ""
        }
    ],
    "publicClient": False,
    "redirectUris": [],
    "registeredNodes": {},
    "registrationAccessToken": "",
    "rootUrl": "",
    "secret": "",
    "serviceAccountsEnabled": False,
    "standardFlowEnabled": False,
    "surrogateAuthRequired": False,
    "webOrigins": []
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id"

payload <- "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/clients/:id') do |req|
  req.body = "{\n  \"access\": {},\n  \"adminUrl\": \"\",\n  \"alwaysDisplayInConsole\": false,\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"authorizationServicesEnabled\": false,\n  \"authorizationSettings\": {\n    \"allowRemoteResourceManagement\": false,\n    \"clientId\": \"\",\n    \"decisionStrategy\": \"\",\n    \"id\": \"\",\n    \"name\": \"\",\n    \"policies\": [\n      {\n        \"config\": {},\n        \"decisionStrategy\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"logic\": \"\",\n        \"name\": \"\",\n        \"owner\": \"\",\n        \"policies\": [],\n        \"resources\": [],\n        \"resourcesData\": [\n          {\n            \"attributes\": {},\n            \"displayName\": \"\",\n            \"icon_uri\": \"\",\n            \"id\": \"\",\n            \"name\": \"\",\n            \"ownerManagedAccess\": false,\n            \"scopes\": [\n              {\n                \"displayName\": \"\",\n                \"iconUri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"policies\": [],\n                \"resources\": []\n              }\n            ],\n            \"type\": \"\",\n            \"uris\": []\n          }\n        ],\n        \"scopes\": [],\n        \"scopesData\": [\n          {}\n        ],\n        \"type\": \"\"\n      }\n    ],\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ]\n  },\n  \"baseUrl\": \"\",\n  \"bearerOnly\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"clientId\": \"\",\n  \"consentRequired\": false,\n  \"defaultClientScopes\": [],\n  \"defaultRoles\": [],\n  \"description\": \"\",\n  \"directAccessGrantsEnabled\": false,\n  \"enabled\": false,\n  \"frontchannelLogout\": false,\n  \"fullScopeAllowed\": false,\n  \"id\": \"\",\n  \"implicitFlowEnabled\": false,\n  \"name\": \"\",\n  \"nodeReRegistrationTimeout\": 0,\n  \"notBefore\": 0,\n  \"optionalClientScopes\": [],\n  \"origin\": \"\",\n  \"protocol\": \"\",\n  \"protocolMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\"\n    }\n  ],\n  \"publicClient\": false,\n  \"redirectUris\": [],\n  \"registeredNodes\": {},\n  \"registrationAccessToken\": \"\",\n  \"rootUrl\": \"\",\n  \"secret\": \"\",\n  \"serviceAccountsEnabled\": false,\n  \"standardFlowEnabled\": false,\n  \"surrogateAuthRequired\": false,\n  \"webOrigins\": []\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}}/:realm/clients/:id";

    let payload = json!({
        "access": json!({}),
        "adminUrl": "",
        "alwaysDisplayInConsole": false,
        "attributes": json!({}),
        "authenticationFlowBindingOverrides": json!({}),
        "authorizationServicesEnabled": false,
        "authorizationSettings": json!({
            "allowRemoteResourceManagement": false,
            "clientId": "",
            "decisionStrategy": "",
            "id": "",
            "name": "",
            "policies": (
                json!({
                    "config": json!({}),
                    "decisionStrategy": "",
                    "description": "",
                    "id": "",
                    "logic": "",
                    "name": "",
                    "owner": "",
                    "policies": (),
                    "resources": (),
                    "resourcesData": (
                        json!({
                            "attributes": json!({}),
                            "displayName": "",
                            "icon_uri": "",
                            "id": "",
                            "name": "",
                            "ownerManagedAccess": false,
                            "scopes": (
                                json!({
                                    "displayName": "",
                                    "iconUri": "",
                                    "id": "",
                                    "name": "",
                                    "policies": (),
                                    "resources": ()
                                })
                            ),
                            "type": "",
                            "uris": ()
                        })
                    ),
                    "scopes": (),
                    "scopesData": (json!({})),
                    "type": ""
                })
            ),
            "policyEnforcementMode": "",
            "resources": (json!({})),
            "scopes": (json!({}))
        }),
        "baseUrl": "",
        "bearerOnly": false,
        "clientAuthenticatorType": "",
        "clientId": "",
        "consentRequired": false,
        "defaultClientScopes": (),
        "defaultRoles": (),
        "description": "",
        "directAccessGrantsEnabled": false,
        "enabled": false,
        "frontchannelLogout": false,
        "fullScopeAllowed": false,
        "id": "",
        "implicitFlowEnabled": false,
        "name": "",
        "nodeReRegistrationTimeout": 0,
        "notBefore": 0,
        "optionalClientScopes": (),
        "origin": "",
        "protocol": "",
        "protocolMappers": (
            json!({
                "config": json!({}),
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": ""
            })
        ),
        "publicClient": false,
        "redirectUris": (),
        "registeredNodes": json!({}),
        "registrationAccessToken": "",
        "rootUrl": "",
        "secret": "",
        "serviceAccountsEnabled": false,
        "standardFlowEnabled": false,
        "surrogateAuthRequired": false,
        "webOrigins": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/clients/:id \
  --header 'content-type: application/json' \
  --data '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}'
echo '{
  "access": {},
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "authorizationServicesEnabled": false,
  "authorizationSettings": {
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      {
        "config": {},
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          {
            "attributes": {},
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              {
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              }
            ],
            "type": "",
            "uris": []
          }
        ],
        "scopes": [],
        "scopesData": [
          {}
        ],
        "type": ""
      }
    ],
    "policyEnforcementMode": "",
    "resources": [
      {}
    ],
    "scopes": [
      {}
    ]
  },
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    {
      "config": {},
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    }
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": {},
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
}' |  \
  http PUT {{baseUrl}}/:realm/clients/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "access": {},\n  "adminUrl": "",\n  "alwaysDisplayInConsole": false,\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "authorizationServicesEnabled": false,\n  "authorizationSettings": {\n    "allowRemoteResourceManagement": false,\n    "clientId": "",\n    "decisionStrategy": "",\n    "id": "",\n    "name": "",\n    "policies": [\n      {\n        "config": {},\n        "decisionStrategy": "",\n        "description": "",\n        "id": "",\n        "logic": "",\n        "name": "",\n        "owner": "",\n        "policies": [],\n        "resources": [],\n        "resourcesData": [\n          {\n            "attributes": {},\n            "displayName": "",\n            "icon_uri": "",\n            "id": "",\n            "name": "",\n            "ownerManagedAccess": false,\n            "scopes": [\n              {\n                "displayName": "",\n                "iconUri": "",\n                "id": "",\n                "name": "",\n                "policies": [],\n                "resources": []\n              }\n            ],\n            "type": "",\n            "uris": []\n          }\n        ],\n        "scopes": [],\n        "scopesData": [\n          {}\n        ],\n        "type": ""\n      }\n    ],\n    "policyEnforcementMode": "",\n    "resources": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ]\n  },\n  "baseUrl": "",\n  "bearerOnly": false,\n  "clientAuthenticatorType": "",\n  "clientId": "",\n  "consentRequired": false,\n  "defaultClientScopes": [],\n  "defaultRoles": [],\n  "description": "",\n  "directAccessGrantsEnabled": false,\n  "enabled": false,\n  "frontchannelLogout": false,\n  "fullScopeAllowed": false,\n  "id": "",\n  "implicitFlowEnabled": false,\n  "name": "",\n  "nodeReRegistrationTimeout": 0,\n  "notBefore": 0,\n  "optionalClientScopes": [],\n  "origin": "",\n  "protocol": "",\n  "protocolMappers": [\n    {\n      "config": {},\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": ""\n    }\n  ],\n  "publicClient": false,\n  "redirectUris": [],\n  "registeredNodes": {},\n  "registrationAccessToken": "",\n  "rootUrl": "",\n  "secret": "",\n  "serviceAccountsEnabled": false,\n  "standardFlowEnabled": false,\n  "surrogateAuthRequired": false,\n  "webOrigins": []\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access": [],
  "adminUrl": "",
  "alwaysDisplayInConsole": false,
  "attributes": [],
  "authenticationFlowBindingOverrides": [],
  "authorizationServicesEnabled": false,
  "authorizationSettings": [
    "allowRemoteResourceManagement": false,
    "clientId": "",
    "decisionStrategy": "",
    "id": "",
    "name": "",
    "policies": [
      [
        "config": [],
        "decisionStrategy": "",
        "description": "",
        "id": "",
        "logic": "",
        "name": "",
        "owner": "",
        "policies": [],
        "resources": [],
        "resourcesData": [
          [
            "attributes": [],
            "displayName": "",
            "icon_uri": "",
            "id": "",
            "name": "",
            "ownerManagedAccess": false,
            "scopes": [
              [
                "displayName": "",
                "iconUri": "",
                "id": "",
                "name": "",
                "policies": [],
                "resources": []
              ]
            ],
            "type": "",
            "uris": []
          ]
        ],
        "scopes": [],
        "scopesData": [[]],
        "type": ""
      ]
    ],
    "policyEnforcementMode": "",
    "resources": [[]],
    "scopes": [[]]
  ],
  "baseUrl": "",
  "bearerOnly": false,
  "clientAuthenticatorType": "",
  "clientId": "",
  "consentRequired": false,
  "defaultClientScopes": [],
  "defaultRoles": [],
  "description": "",
  "directAccessGrantsEnabled": false,
  "enabled": false,
  "frontchannelLogout": false,
  "fullScopeAllowed": false,
  "id": "",
  "implicitFlowEnabled": false,
  "name": "",
  "nodeReRegistrationTimeout": 0,
  "notBefore": 0,
  "optionalClientScopes": [],
  "origin": "",
  "protocol": "",
  "protocolMappers": [
    [
      "config": [],
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": ""
    ]
  ],
  "publicClient": false,
  "redirectUris": [],
  "registeredNodes": [],
  "registrationAccessToken": "",
  "rootUrl": "",
  "secret": "",
  "serviceAccountsEnabled": false,
  "standardFlowEnabled": false,
  "surrogateAuthRequired": false,
  "webOrigins": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-clients--id-default-client-scopes--clientScopeId
{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

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}}/:realm/clients/:id/default-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

	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/:realm/clients/:id/default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"))
    .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}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .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}}/:realm/clients/:id/default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId';
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}}/:realm/clients/:id/default-client-scopes/:clientScopeId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/default-client-scopes/:clientScopeId',
  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}}/:realm/clients/:id/default-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');

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}}/:realm/clients/:id/default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId';
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}}/:realm/clients/:id/default-client-scopes/:clientScopeId"]
                                                       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}}/:realm/clients/:id/default-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId",
  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}}/:realm/clients/:id/default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/clients/:id/default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")

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/:realm/clients/:id/default-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId";

    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}}/:realm/clients/:id/default-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-clients--id-optional-client-scopes--clientScopeId
{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

	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/:realm/clients/:id/optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"))
    .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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId';
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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/optional-client-scopes/:clientScopeId',
  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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');

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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId';
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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"]
                                                       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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId",
  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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/clients/:id/optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")

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/:realm/clients/:id/optional-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId";

    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}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")! 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 get --realm-clients--id-installation-providers--providerId
{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId"

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}}/:realm/clients/:id/installation/providers/:providerId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId"

	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/:realm/clients/:id/installation/providers/:providerId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId"))
    .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}}/:realm/clients/:id/installation/providers/:providerId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId")
  .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}}/:realm/clients/:id/installation/providers/:providerId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId';
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}}/:realm/clients/:id/installation/providers/:providerId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/installation/providers/:providerId',
  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}}/:realm/clients/:id/installation/providers/:providerId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId');

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}}/:realm/clients/:id/installation/providers/:providerId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId';
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}}/:realm/clients/:id/installation/providers/:providerId"]
                                                       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}}/:realm/clients/:id/installation/providers/:providerId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId",
  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}}/:realm/clients/:id/installation/providers/:providerId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/installation/providers/:providerId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId")

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/:realm/clients/:id/installation/providers/:providerId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId";

    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}}/:realm/clients/:id/installation/providers/:providerId
http GET {{baseUrl}}/:realm/clients/:id/installation/providers/:providerId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/installation/providers/:providerId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/installation/providers/:providerId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT put --realm-clients--id-default-client-scopes--clientScopeId
{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/clients/:id/default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/default-client-scopes/:clientScopeId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/clients/:id/default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/clients/:id/default-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId
http PUT {{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/default-client-scopes/:clientScopeId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT put --realm-clients--id-optional-client-scopes--clientScopeId
{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/clients/:id/optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/optional-client-scopes/:clientScopeId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/clients/:id/optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/clients/:id/optional-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
http PUT {{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/optional-client-scopes/:clientScopeId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET List of subcomponent types that are available to configure for a particular parent component.
{{baseUrl}}/:realm/components/:id/sub-component-types
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/components/:id/sub-component-types");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/components/:id/sub-component-types")
require "http/client"

url = "{{baseUrl}}/:realm/components/:id/sub-component-types"

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}}/:realm/components/:id/sub-component-types"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/components/:id/sub-component-types");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/components/:id/sub-component-types"

	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/:realm/components/:id/sub-component-types HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/components/:id/sub-component-types")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/components/:id/sub-component-types"))
    .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}}/:realm/components/:id/sub-component-types")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/components/:id/sub-component-types")
  .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}}/:realm/components/:id/sub-component-types');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/components/:id/sub-component-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/components/:id/sub-component-types';
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}}/:realm/components/:id/sub-component-types',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/components/:id/sub-component-types")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/components/:id/sub-component-types',
  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}}/:realm/components/:id/sub-component-types'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/components/:id/sub-component-types');

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}}/:realm/components/:id/sub-component-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/components/:id/sub-component-types';
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}}/:realm/components/:id/sub-component-types"]
                                                       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}}/:realm/components/:id/sub-component-types" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/components/:id/sub-component-types",
  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}}/:realm/components/:id/sub-component-types');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/components/:id/sub-component-types');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/components/:id/sub-component-types');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/components/:id/sub-component-types' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/components/:id/sub-component-types' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/components/:id/sub-component-types")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/components/:id/sub-component-types"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/components/:id/sub-component-types"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/components/:id/sub-component-types")

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/:realm/components/:id/sub-component-types') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/components/:id/sub-component-types";

    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}}/:realm/components/:id/sub-component-types
http GET {{baseUrl}}/:realm/components/:id/sub-component-types
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/components/:id/sub-component-types
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/components/:id/sub-component-types")! 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 delete --realm-components--id
{{baseUrl}}/:realm/components/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/components/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/components/:id")
require "http/client"

url = "{{baseUrl}}/:realm/components/:id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/components/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/components/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/components/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/components/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/components/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/components/:id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/components/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/components/:id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/components/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/components/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/components/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/components/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/components/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/components/:id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/components/:id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/components/:id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/components/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/components/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/components/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/components/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/components/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/components/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/components/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/components/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/components/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/components/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/components/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/components/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/components/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/components/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/components/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/components/:id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/components/:id
http DELETE {{baseUrl}}/:realm/components/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/components/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/components/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET get --realm-components--id
{{baseUrl}}/:realm/components/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/components/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/components/:id")
require "http/client"

url = "{{baseUrl}}/:realm/components/: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}}/:realm/components/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/components/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/components/: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/:realm/components/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/components/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/components/: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}}/:realm/components/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/components/: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}}/:realm/components/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/components/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/components/: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}}/:realm/components/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/components/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/components/: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}}/:realm/components/: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}}/:realm/components/: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}}/:realm/components/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/components/: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}}/:realm/components/: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}}/:realm/components/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/components/: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}}/:realm/components/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/components/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/components/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/components/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/components/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/components/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/components/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/components/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/components/: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/:realm/components/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/components/: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}}/:realm/components/:id
http GET {{baseUrl}}/:realm/components/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/components/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/components/: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 get --realm-components
{{baseUrl}}/:realm/components
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/components");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/components")
require "http/client"

url = "{{baseUrl}}/:realm/components"

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}}/:realm/components"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/components");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/components"

	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/:realm/components HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/components")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/components"))
    .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}}/:realm/components")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/components")
  .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}}/:realm/components');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/components'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/components';
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}}/:realm/components',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/components")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/components',
  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}}/:realm/components'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/components');

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}}/:realm/components'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/components';
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}}/:realm/components"]
                                                       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}}/:realm/components" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/components",
  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}}/:realm/components');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/components');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/components');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/components' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/components' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/components")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/components"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/components"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/components")

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/:realm/components') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/components";

    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}}/:realm/components
http GET {{baseUrl}}/:realm/components
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/components
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/components")! 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 post --realm-components
{{baseUrl}}/:realm/components
BODY json

{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/components");

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  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/components" {:content-type :json
                                                              :form-params {:config {:empty false
                                                                                     :loadFactor ""
                                                                                     :threshold 0}
                                                                            :id ""
                                                                            :name ""
                                                                            :parentId ""
                                                                            :providerId ""
                                                                            :providerType ""
                                                                            :subType ""}})
require "http/client"

url = "{{baseUrl}}/:realm/components"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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}}/:realm/components"),
    Content = new StringContent("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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}}/:realm/components");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/components"

	payload := strings.NewReader("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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/:realm/components HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 185

{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/components")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/components"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/components")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/components")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  id: '',
  name: '',
  parentId: '',
  providerId: '',
  providerType: '',
  subType: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/components');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/components',
  headers: {'content-type': 'application/json'},
  data: {
    config: {empty: false, loadFactor: '', threshold: 0},
    id: '',
    name: '',
    parentId: '',
    providerId: '',
    providerType: '',
    subType: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/components';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{"empty":false,"loadFactor":"","threshold":0},"id":"","name":"","parentId":"","providerId":"","providerType":"","subType":""}'
};

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}}/:realm/components',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "id": "",\n  "name": "",\n  "parentId": "",\n  "providerId": "",\n  "providerType": "",\n  "subType": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/components")
  .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/:realm/components',
  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({
  config: {empty: false, loadFactor: '', threshold: 0},
  id: '',
  name: '',
  parentId: '',
  providerId: '',
  providerType: '',
  subType: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/components',
  headers: {'content-type': 'application/json'},
  body: {
    config: {empty: false, loadFactor: '', threshold: 0},
    id: '',
    name: '',
    parentId: '',
    providerId: '',
    providerType: '',
    subType: ''
  },
  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}}/:realm/components');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  id: '',
  name: '',
  parentId: '',
  providerId: '',
  providerType: '',
  subType: ''
});

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}}/:realm/components',
  headers: {'content-type': 'application/json'},
  data: {
    config: {empty: false, loadFactor: '', threshold: 0},
    id: '',
    name: '',
    parentId: '',
    providerId: '',
    providerType: '',
    subType: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/components';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{"empty":false,"loadFactor":"","threshold":0},"id":"","name":"","parentId":"","providerId":"","providerType":"","subType":""}'
};

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 = @{ @"config": @{ @"empty": @NO, @"loadFactor": @"", @"threshold": @0 },
                              @"id": @"",
                              @"name": @"",
                              @"parentId": @"",
                              @"providerId": @"",
                              @"providerType": @"",
                              @"subType": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/components"]
                                                       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}}/:realm/components" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/components",
  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([
    'config' => [
        'empty' => null,
        'loadFactor' => '',
        'threshold' => 0
    ],
    'id' => '',
    'name' => '',
    'parentId' => '',
    'providerId' => '',
    'providerType' => '',
    'subType' => ''
  ]),
  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}}/:realm/components', [
  'body' => '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/components');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'id' => '',
  'name' => '',
  'parentId' => '',
  'providerId' => '',
  'providerType' => '',
  'subType' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'id' => '',
  'name' => '',
  'parentId' => '',
  'providerId' => '',
  'providerType' => '',
  'subType' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/components');
$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}}/:realm/components' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/components' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/components", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/components"

payload = {
    "config": {
        "empty": False,
        "loadFactor": "",
        "threshold": 0
    },
    "id": "",
    "name": "",
    "parentId": "",
    "providerId": "",
    "providerType": "",
    "subType": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/components"

payload <- "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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}}/:realm/components")

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  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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/:realm/components') do |req|
  req.body = "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/components";

    let payload = json!({
        "config": json!({
            "empty": false,
            "loadFactor": "",
            "threshold": 0
        }),
        "id": "",
        "name": "",
        "parentId": "",
        "providerId": "",
        "providerType": "",
        "subType": ""
    });

    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}}/:realm/components \
  --header 'content-type: application/json' \
  --data '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}'
echo '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}' |  \
  http POST {{baseUrl}}/:realm/components \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "id": "",\n  "name": "",\n  "parentId": "",\n  "providerId": "",\n  "providerType": "",\n  "subType": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/components
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  ],
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/components")! 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()
PUT put --realm-components--id
{{baseUrl}}/:realm/components/:id
BODY json

{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/components/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/components/:id" {:content-type :json
                                                                 :form-params {:config {:empty false
                                                                                        :loadFactor ""
                                                                                        :threshold 0}
                                                                               :id ""
                                                                               :name ""
                                                                               :parentId ""
                                                                               :providerId ""
                                                                               :providerType ""
                                                                               :subType ""}})
require "http/client"

url = "{{baseUrl}}/:realm/components/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/components/:id"),
    Content = new StringContent("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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}}/:realm/components/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/components/:id"

	payload := strings.NewReader("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/components/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 185

{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/components/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/components/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/components/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/components/:id")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  id: '',
  name: '',
  parentId: '',
  providerId: '',
  providerType: '',
  subType: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/components/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/components/:id',
  headers: {'content-type': 'application/json'},
  data: {
    config: {empty: false, loadFactor: '', threshold: 0},
    id: '',
    name: '',
    parentId: '',
    providerId: '',
    providerType: '',
    subType: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/components/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{"empty":false,"loadFactor":"","threshold":0},"id":"","name":"","parentId":"","providerId":"","providerType":"","subType":""}'
};

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}}/:realm/components/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "id": "",\n  "name": "",\n  "parentId": "",\n  "providerId": "",\n  "providerType": "",\n  "subType": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/components/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/components/:id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  config: {empty: false, loadFactor: '', threshold: 0},
  id: '',
  name: '',
  parentId: '',
  providerId: '',
  providerType: '',
  subType: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/components/:id',
  headers: {'content-type': 'application/json'},
  body: {
    config: {empty: false, loadFactor: '', threshold: 0},
    id: '',
    name: '',
    parentId: '',
    providerId: '',
    providerType: '',
    subType: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/components/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  id: '',
  name: '',
  parentId: '',
  providerId: '',
  providerType: '',
  subType: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/components/:id',
  headers: {'content-type': 'application/json'},
  data: {
    config: {empty: false, loadFactor: '', threshold: 0},
    id: '',
    name: '',
    parentId: '',
    providerId: '',
    providerType: '',
    subType: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/components/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{"empty":false,"loadFactor":"","threshold":0},"id":"","name":"","parentId":"","providerId":"","providerType":"","subType":""}'
};

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 = @{ @"config": @{ @"empty": @NO, @"loadFactor": @"", @"threshold": @0 },
                              @"id": @"",
                              @"name": @"",
                              @"parentId": @"",
                              @"providerId": @"",
                              @"providerType": @"",
                              @"subType": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/components/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/components/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/components/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'config' => [
        'empty' => null,
        'loadFactor' => '',
        'threshold' => 0
    ],
    'id' => '',
    'name' => '',
    'parentId' => '',
    'providerId' => '',
    'providerType' => '',
    'subType' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/components/:id', [
  'body' => '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/components/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'id' => '',
  'name' => '',
  'parentId' => '',
  'providerId' => '',
  'providerType' => '',
  'subType' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'id' => '',
  'name' => '',
  'parentId' => '',
  'providerId' => '',
  'providerType' => '',
  'subType' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/components/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/components/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/components/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/components/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/components/:id"

payload = {
    "config": {
        "empty": False,
        "loadFactor": "",
        "threshold": 0
    },
    "id": "",
    "name": "",
    "parentId": "",
    "providerId": "",
    "providerType": "",
    "subType": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/components/:id"

payload <- "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/components/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/components/:id') do |req|
  req.body = "{\n  \"config\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"id\": \"\",\n  \"name\": \"\",\n  \"parentId\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"subType\": \"\"\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}}/:realm/components/:id";

    let payload = json!({
        "config": json!({
            "empty": false,
            "loadFactor": "",
            "threshold": 0
        }),
        "id": "",
        "name": "",
        "parentId": "",
        "providerId": "",
        "providerType": "",
        "subType": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/components/:id \
  --header 'content-type: application/json' \
  --data '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}'
echo '{
  "config": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
}' |  \
  http PUT {{baseUrl}}/:realm/components/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "id": "",\n  "name": "",\n  "parentId": "",\n  "providerId": "",\n  "providerType": "",\n  "subType": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/components/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  ],
  "id": "",
  "name": "",
  "parentId": "",
  "providerId": "",
  "providerType": "",
  "subType": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/components/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get group hierarchy. (GET)
{{baseUrl}}/:realm/groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups")
require "http/client"

url = "{{baseUrl}}/:realm/groups"

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}}/:realm/groups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups"

	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/:realm/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups"))
    .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}}/:realm/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups")
  .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}}/:realm/groups');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/groups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups';
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}}/:realm/groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups',
  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}}/:realm/groups'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups');

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}}/:realm/groups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups';
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}}/:realm/groups"]
                                                       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}}/:realm/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups",
  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}}/:realm/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups")

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/:realm/groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups";

    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}}/:realm/groups
http GET {{baseUrl}}/:realm/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups")! 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 Get users Returns a list of users, filtered according to query parameters
{{baseUrl}}/:realm/groups/:id/members
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/members");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/members")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/members"

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}}/:realm/groups/:id/members"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/members");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/members"

	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/:realm/groups/:id/members HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/members")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/members"))
    .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}}/:realm/groups/:id/members")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/members")
  .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}}/:realm/groups/:id/members');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/groups/:id/members'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/members';
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}}/:realm/groups/:id/members',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/members")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/members',
  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}}/:realm/groups/:id/members'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/members');

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}}/:realm/groups/:id/members'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/members';
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}}/:realm/groups/:id/members"]
                                                       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}}/:realm/groups/:id/members" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/members",
  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}}/:realm/groups/:id/members');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/members');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/members');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/members' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/members' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/members")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/members"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/members"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/members")

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/:realm/groups/:id/members') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/members";

    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}}/:realm/groups/:id/members
http GET {{baseUrl}}/:realm/groups/:id/members
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/members
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/members")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Return object stating whether client Authorization permissions have been initialized or not and a reference (1)
{{baseUrl}}/:realm/groups/:id/management/permissions
BODY json

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/management/permissions");

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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/groups/:id/management/permissions" {:content-type :json
                                                                                    :form-params {:enabled false
                                                                                                  :resource ""
                                                                                                  :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/management/permissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/groups/:id/management/permissions"),
    Content = new StringContent("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/groups/:id/management/permissions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/management/permissions"

	payload := strings.NewReader("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/groups/:id/management/permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/groups/:id/management/permissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/management/permissions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/groups/:id/management/permissions")
  .header("content-type", "application/json")
  .body("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .asString();
const data = JSON.stringify({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/groups/:id/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/groups/:id/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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}}/:realm/groups/:id/management/permissions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/management/permissions',
  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({enabled: false, resource: '', scopePermissions: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/groups/:id/management/permissions',
  headers: {'content-type': 'application/json'},
  body: {enabled: false, resource: '', scopePermissions: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/groups/:id/management/permissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/groups/:id/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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 = @{ @"enabled": @NO,
                              @"resource": @"",
                              @"scopePermissions": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id/management/permissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/groups/:id/management/permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/management/permissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'enabled' => null,
    'resource' => '',
    'scopePermissions' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/groups/:id/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/management/permissions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups/:id/management/permissions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/groups/:id/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/management/permissions"

payload = {
    "enabled": False,
    "resource": "",
    "scopePermissions": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/management/permissions"

payload <- "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/management/permissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/groups/:id/management/permissions') do |req|
  req.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/groups/:id/management/permissions";

    let payload = json!({
        "enabled": false,
        "resource": "",
        "scopePermissions": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/groups/:id/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/:realm/groups/:id/management/permissions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}' \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/management/permissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enabled": false,
  "resource": "",
  "scopePermissions": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return object stating whether client Authorization permissions have been initialized or not and a reference (GET)
{{baseUrl}}/:realm/groups/:id/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/management/permissions")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/management/permissions"

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}}/:realm/groups/:id/management/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/management/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/management/permissions"

	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/:realm/groups/:id/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/management/permissions"))
    .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}}/:realm/groups/:id/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/management/permissions")
  .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}}/:realm/groups/:id/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/management/permissions';
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}}/:realm/groups/:id/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/management/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/management/permissions',
  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}}/:realm/groups/:id/management/permissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/management/permissions');

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}}/:realm/groups/:id/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/management/permissions';
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}}/:realm/groups/:id/management/permissions"]
                                                       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}}/:realm/groups/:id/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/management/permissions",
  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}}/:realm/groups/:id/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/management/permissions")

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/:realm/groups/:id/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/management/permissions";

    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}}/:realm/groups/:id/management/permissions
http GET {{baseUrl}}/:realm/groups/:id/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/management/permissions")! 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 groups counts.
{{baseUrl}}/:realm/groups/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/count")
require "http/client"

url = "{{baseUrl}}/:realm/groups/count"

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}}/:realm/groups/count"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/count"

	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/:realm/groups/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/count"))
    .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}}/:realm/groups/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/count")
  .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}}/:realm/groups/count');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/groups/count'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/count';
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}}/:realm/groups/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/count")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/count',
  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}}/:realm/groups/count'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/count');

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}}/:realm/groups/count'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/count';
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}}/:realm/groups/count"]
                                                       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}}/:realm/groups/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/count",
  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}}/:realm/groups/count');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/count")

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/:realm/groups/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/count";

    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}}/:realm/groups/count
http GET {{baseUrl}}/:realm/groups/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/count")! 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 Set or create child.
{{baseUrl}}/:realm/groups/:id/children
BODY json

{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/children");

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  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/groups/:id/children" {:content-type :json
                                                                       :form-params {:access {}
                                                                                     :attributes {}
                                                                                     :clientRoles {}
                                                                                     :id ""
                                                                                     :name ""
                                                                                     :path ""
                                                                                     :realmRoles []
                                                                                     :subGroups []}})
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/children"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups/:id/children"),
    Content = new StringContent("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups/:id/children");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/children"

	payload := strings.NewReader("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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/:realm/groups/:id/children HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 138

{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/groups/:id/children")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/children"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/children")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/groups/:id/children")
  .header("content-type", "application/json")
  .body("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
  .asString();
const data = JSON.stringify({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/groups/:id/children');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/children',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/children';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}'
};

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}}/:realm/groups/:id/children',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access": {},\n  "attributes": {},\n  "clientRoles": {},\n  "id": "",\n  "name": "",\n  "path": "",\n  "realmRoles": [],\n  "subGroups": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/children")
  .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/:realm/groups/:id/children',
  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({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/children',
  headers: {'content-type': 'application/json'},
  body: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  },
  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}}/:realm/groups/:id/children');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
});

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}}/:realm/groups/:id/children',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/children';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}'
};

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 = @{ @"access": @{  },
                              @"attributes": @{  },
                              @"clientRoles": @{  },
                              @"id": @"",
                              @"name": @"",
                              @"path": @"",
                              @"realmRoles": @[  ],
                              @"subGroups": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id/children"]
                                                       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}}/:realm/groups/:id/children" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/children",
  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([
    'access' => [
        
    ],
    'attributes' => [
        
    ],
    'clientRoles' => [
        
    ],
    'id' => '',
    'name' => '',
    'path' => '',
    'realmRoles' => [
        
    ],
    'subGroups' => [
        
    ]
  ]),
  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}}/:realm/groups/:id/children', [
  'body' => '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/children');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientRoles' => [
    
  ],
  'id' => '',
  'name' => '',
  'path' => '',
  'realmRoles' => [
    
  ],
  'subGroups' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientRoles' => [
    
  ],
  'id' => '',
  'name' => '',
  'path' => '',
  'realmRoles' => [
    
  ],
  'subGroups' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups/:id/children');
$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}}/:realm/groups/:id/children' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/children' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/groups/:id/children", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/children"

payload = {
    "access": {},
    "attributes": {},
    "clientRoles": {},
    "id": "",
    "name": "",
    "path": "",
    "realmRoles": [],
    "subGroups": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/children"

payload <- "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups/:id/children")

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  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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/:realm/groups/:id/children') do |req|
  req.body = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/children";

    let payload = json!({
        "access": json!({}),
        "attributes": json!({}),
        "clientRoles": json!({}),
        "id": "",
        "name": "",
        "path": "",
        "realmRoles": (),
        "subGroups": ()
    });

    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}}/:realm/groups/:id/children \
  --header 'content-type: application/json' \
  --data '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
echo '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}' |  \
  http POST {{baseUrl}}/:realm/groups/:id/children \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "access": {},\n  "attributes": {},\n  "clientRoles": {},\n  "id": "",\n  "name": "",\n  "path": "",\n  "realmRoles": [],\n  "subGroups": []\n}' \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/children
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access": [],
  "attributes": [],
  "clientRoles": [],
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/children")! 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()
PUT Update group, ignores subgroups.
{{baseUrl}}/:realm/groups/:id
BODY json

{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/groups/:id" {:content-type :json
                                                             :form-params {:access {}
                                                                           :attributes {}
                                                                           :clientRoles {}
                                                                           :id ""
                                                                           :name ""
                                                                           :path ""
                                                                           :realmRoles []
                                                                           :subGroups []}})
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/groups/:id"),
    Content = new StringContent("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id"

	payload := strings.NewReader("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/groups/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 138

{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/groups/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/groups/:id")
  .header("content-type", "application/json")
  .body("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
  .asString();
const data = JSON.stringify({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/groups/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/groups/:id',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}'
};

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}}/:realm/groups/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access": {},\n  "attributes": {},\n  "clientRoles": {},\n  "id": "",\n  "name": "",\n  "path": "",\n  "realmRoles": [],\n  "subGroups": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/groups/:id',
  headers: {'content-type': 'application/json'},
  body: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/groups/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/groups/:id',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}'
};

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 = @{ @"access": @{  },
                              @"attributes": @{  },
                              @"clientRoles": @{  },
                              @"id": @"",
                              @"name": @"",
                              @"path": @"",
                              @"realmRoles": @[  ],
                              @"subGroups": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/groups/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'access' => [
        
    ],
    'attributes' => [
        
    ],
    'clientRoles' => [
        
    ],
    'id' => '',
    'name' => '',
    'path' => '',
    'realmRoles' => [
        
    ],
    'subGroups' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/groups/:id', [
  'body' => '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientRoles' => [
    
  ],
  'id' => '',
  'name' => '',
  'path' => '',
  'realmRoles' => [
    
  ],
  'subGroups' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientRoles' => [
    
  ],
  'id' => '',
  'name' => '',
  'path' => '',
  'realmRoles' => [
    
  ],
  'subGroups' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/groups/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id"

payload = {
    "access": {},
    "attributes": {},
    "clientRoles": {},
    "id": "",
    "name": "",
    "path": "",
    "realmRoles": [],
    "subGroups": []
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id"

payload <- "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/groups/:id') do |req|
  req.body = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups/:id";

    let payload = json!({
        "access": json!({}),
        "attributes": json!({}),
        "clientRoles": json!({}),
        "id": "",
        "name": "",
        "path": "",
        "realmRoles": (),
        "subGroups": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/groups/:id \
  --header 'content-type: application/json' \
  --data '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
echo '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}' |  \
  http PUT {{baseUrl}}/:realm/groups/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "access": {},\n  "attributes": {},\n  "clientRoles": {},\n  "id": "",\n  "name": "",\n  "path": "",\n  "realmRoles": [],\n  "subGroups": []\n}' \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access": [],
  "attributes": [],
  "clientRoles": [],
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST create or add a top level realm groupSet or create child.
{{baseUrl}}/:realm/groups
BODY json

{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups");

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  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/groups" {:content-type :json
                                                          :form-params {:access {}
                                                                        :attributes {}
                                                                        :clientRoles {}
                                                                        :id ""
                                                                        :name ""
                                                                        :path ""
                                                                        :realmRoles []
                                                                        :subGroups []}})
require "http/client"

url = "{{baseUrl}}/:realm/groups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups"),
    Content = new StringContent("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups"

	payload := strings.NewReader("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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/:realm/groups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 138

{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/groups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/groups")
  .header("content-type", "application/json")
  .body("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
  .asString();
const data = JSON.stringify({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/groups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}'
};

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}}/:realm/groups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access": {},\n  "attributes": {},\n  "clientRoles": {},\n  "id": "",\n  "name": "",\n  "path": "",\n  "realmRoles": [],\n  "subGroups": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups")
  .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/:realm/groups',
  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({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups',
  headers: {'content-type': 'application/json'},
  body: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  },
  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}}/:realm/groups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  access: {},
  attributes: {},
  clientRoles: {},
  id: '',
  name: '',
  path: '',
  realmRoles: [],
  subGroups: []
});

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}}/:realm/groups',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientRoles: {},
    id: '',
    name: '',
    path: '',
    realmRoles: [],
    subGroups: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}'
};

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 = @{ @"access": @{  },
                              @"attributes": @{  },
                              @"clientRoles": @{  },
                              @"id": @"",
                              @"name": @"",
                              @"path": @"",
                              @"realmRoles": @[  ],
                              @"subGroups": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups"]
                                                       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}}/:realm/groups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups",
  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([
    'access' => [
        
    ],
    'attributes' => [
        
    ],
    'clientRoles' => [
        
    ],
    'id' => '',
    'name' => '',
    'path' => '',
    'realmRoles' => [
        
    ],
    'subGroups' => [
        
    ]
  ]),
  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}}/:realm/groups', [
  'body' => '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientRoles' => [
    
  ],
  'id' => '',
  'name' => '',
  'path' => '',
  'realmRoles' => [
    
  ],
  'subGroups' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientRoles' => [
    
  ],
  'id' => '',
  'name' => '',
  'path' => '',
  'realmRoles' => [
    
  ],
  'subGroups' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups');
$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}}/:realm/groups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/groups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups"

payload = {
    "access": {},
    "attributes": {},
    "clientRoles": {},
    "id": "",
    "name": "",
    "path": "",
    "realmRoles": [],
    "subGroups": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups"

payload <- "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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}}/:realm/groups")

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  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\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/:realm/groups') do |req|
  req.body = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientRoles\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"path\": \"\",\n  \"realmRoles\": [],\n  \"subGroups\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups";

    let payload = json!({
        "access": json!({}),
        "attributes": json!({}),
        "clientRoles": json!({}),
        "id": "",
        "name": "",
        "path": "",
        "realmRoles": (),
        "subGroups": ()
    });

    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}}/:realm/groups \
  --header 'content-type: application/json' \
  --data '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}'
echo '{
  "access": {},
  "attributes": {},
  "clientRoles": {},
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
}' |  \
  http POST {{baseUrl}}/:realm/groups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "access": {},\n  "attributes": {},\n  "clientRoles": {},\n  "id": "",\n  "name": "",\n  "path": "",\n  "realmRoles": [],\n  "subGroups": []\n}' \
  --output-document \
  - {{baseUrl}}/:realm/groups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access": [],
  "attributes": [],
  "clientRoles": [],
  "id": "",
  "name": "",
  "path": "",
  "realmRoles": [],
  "subGroups": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-groups--id
{{baseUrl}}/:realm/groups/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/groups/:id")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/groups/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/groups/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/groups/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/groups/:id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/groups/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/groups/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/groups/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/groups/:id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/groups/:id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/groups/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/groups/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/groups/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/groups/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/groups/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/groups/:id
http DELETE {{baseUrl}}/:realm/groups/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET get --realm-groups--id
{{baseUrl}}/:realm/groups/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id")
require "http/client"

url = "{{baseUrl}}/:realm/groups/: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}}/:realm/groups/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/: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/:realm/groups/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/: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}}/:realm/groups/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/: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}}/:realm/groups/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/groups/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/: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}}/:realm/groups/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/: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}}/:realm/groups/: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}}/:realm/groups/: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}}/:realm/groups/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/: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}}/:realm/groups/: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}}/:realm/groups/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/: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}}/:realm/groups/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/: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/:realm/groups/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/: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}}/:realm/groups/:id
http GET {{baseUrl}}/:realm/groups/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/: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()
POST Add a mapper to identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers
BODY json

{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers");

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  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers" {:content-type :json
                                                                                              :form-params {:config {}
                                                                                                            :id ""
                                                                                                            :identityProviderAlias ""
                                                                                                            :identityProviderMapper ""
                                                                                                            :name ""}})
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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}}/:realm/identity-provider/instances/:alias/mappers"),
    Content = new StringContent("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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}}/:realm/identity-provider/instances/:alias/mappers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"

	payload := strings.NewReader("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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/:realm/identity-provider/instances/:alias/mappers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 107

{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {},
  id: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers',
  headers: {'content-type': 'application/json'},
  data: {
    config: {},
    id: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}'
};

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}}/:realm/identity-provider/instances/:alias/mappers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {},\n  "id": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
  .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/:realm/identity-provider/instances/:alias/mappers',
  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({
  config: {},
  id: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers',
  headers: {'content-type': 'application/json'},
  body: {
    config: {},
    id: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    name: ''
  },
  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}}/:realm/identity-provider/instances/:alias/mappers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {},
  id: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  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: 'POST',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers',
  headers: {'content-type': 'application/json'},
  data: {
    config: {},
    id: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}'
};

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 = @{ @"config": @{  },
                              @"id": @"",
                              @"identityProviderAlias": @"",
                              @"identityProviderMapper": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"]
                                                       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}}/:realm/identity-provider/instances/:alias/mappers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers",
  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([
    'config' => [
        
    ],
    'id' => '',
    'identityProviderAlias' => '',
    'identityProviderMapper' => '',
    'name' => ''
  ]),
  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}}/:realm/identity-provider/instances/:alias/mappers', [
  'body' => '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers');
$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}}/:realm/identity-provider/instances/:alias/mappers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/identity-provider/instances/:alias/mappers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"

payload = {
    "config": {},
    "id": "",
    "identityProviderAlias": "",
    "identityProviderMapper": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"

payload <- "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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}}/:realm/identity-provider/instances/:alias/mappers")

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  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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/:realm/identity-provider/instances/:alias/mappers') do |req|
  req.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers";

    let payload = json!({
        "config": json!({}),
        "id": "",
        "identityProviderAlias": "",
        "identityProviderMapper": "",
        "name": ""
    });

    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}}/:realm/identity-provider/instances/:alias/mappers \
  --header 'content-type: application/json' \
  --data '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}'
echo '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {},\n  "id": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [],
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create a new identity provider
{{baseUrl}}/:realm/identity-provider/instances
BODY json

{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances");

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  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/identity-provider/instances" {:content-type :json
                                                                               :form-params {:addReadTokenRoleOnCreate false
                                                                                             :alias ""
                                                                                             :config {}
                                                                                             :displayName ""
                                                                                             :enabled false
                                                                                             :firstBrokerLoginFlowAlias ""
                                                                                             :internalId ""
                                                                                             :linkOnly false
                                                                                             :postBrokerLoginFlowAlias ""
                                                                                             :providerId ""
                                                                                             :storeToken false
                                                                                             :trustEmail false}})
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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}}/:realm/identity-provider/instances"),
    Content = new StringContent("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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}}/:realm/identity-provider/instances");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances"

	payload := strings.NewReader("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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/:realm/identity-provider/instances HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 287

{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/identity-provider/instances")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/identity-provider/instances")
  .header("content-type", "application/json")
  .body("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}")
  .asString();
const data = JSON.stringify({
  addReadTokenRoleOnCreate: false,
  alias: '',
  config: {},
  displayName: '',
  enabled: false,
  firstBrokerLoginFlowAlias: '',
  internalId: '',
  linkOnly: false,
  postBrokerLoginFlowAlias: '',
  providerId: '',
  storeToken: false,
  trustEmail: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/identity-provider/instances');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/identity-provider/instances',
  headers: {'content-type': 'application/json'},
  data: {
    addReadTokenRoleOnCreate: false,
    alias: '',
    config: {},
    displayName: '',
    enabled: false,
    firstBrokerLoginFlowAlias: '',
    internalId: '',
    linkOnly: false,
    postBrokerLoginFlowAlias: '',
    providerId: '',
    storeToken: false,
    trustEmail: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}'
};

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}}/:realm/identity-provider/instances',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "addReadTokenRoleOnCreate": false,\n  "alias": "",\n  "config": {},\n  "displayName": "",\n  "enabled": false,\n  "firstBrokerLoginFlowAlias": "",\n  "internalId": "",\n  "linkOnly": false,\n  "postBrokerLoginFlowAlias": "",\n  "providerId": "",\n  "storeToken": false,\n  "trustEmail": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances")
  .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/:realm/identity-provider/instances',
  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({
  addReadTokenRoleOnCreate: false,
  alias: '',
  config: {},
  displayName: '',
  enabled: false,
  firstBrokerLoginFlowAlias: '',
  internalId: '',
  linkOnly: false,
  postBrokerLoginFlowAlias: '',
  providerId: '',
  storeToken: false,
  trustEmail: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/identity-provider/instances',
  headers: {'content-type': 'application/json'},
  body: {
    addReadTokenRoleOnCreate: false,
    alias: '',
    config: {},
    displayName: '',
    enabled: false,
    firstBrokerLoginFlowAlias: '',
    internalId: '',
    linkOnly: false,
    postBrokerLoginFlowAlias: '',
    providerId: '',
    storeToken: false,
    trustEmail: false
  },
  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}}/:realm/identity-provider/instances');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  addReadTokenRoleOnCreate: false,
  alias: '',
  config: {},
  displayName: '',
  enabled: false,
  firstBrokerLoginFlowAlias: '',
  internalId: '',
  linkOnly: false,
  postBrokerLoginFlowAlias: '',
  providerId: '',
  storeToken: false,
  trustEmail: false
});

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}}/:realm/identity-provider/instances',
  headers: {'content-type': 'application/json'},
  data: {
    addReadTokenRoleOnCreate: false,
    alias: '',
    config: {},
    displayName: '',
    enabled: false,
    firstBrokerLoginFlowAlias: '',
    internalId: '',
    linkOnly: false,
    postBrokerLoginFlowAlias: '',
    providerId: '',
    storeToken: false,
    trustEmail: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}'
};

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 = @{ @"addReadTokenRoleOnCreate": @NO,
                              @"alias": @"",
                              @"config": @{  },
                              @"displayName": @"",
                              @"enabled": @NO,
                              @"firstBrokerLoginFlowAlias": @"",
                              @"internalId": @"",
                              @"linkOnly": @NO,
                              @"postBrokerLoginFlowAlias": @"",
                              @"providerId": @"",
                              @"storeToken": @NO,
                              @"trustEmail": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/identity-provider/instances"]
                                                       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}}/:realm/identity-provider/instances" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances",
  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([
    'addReadTokenRoleOnCreate' => null,
    'alias' => '',
    'config' => [
        
    ],
    'displayName' => '',
    'enabled' => null,
    'firstBrokerLoginFlowAlias' => '',
    'internalId' => '',
    'linkOnly' => null,
    'postBrokerLoginFlowAlias' => '',
    'providerId' => '',
    'storeToken' => null,
    'trustEmail' => null
  ]),
  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}}/:realm/identity-provider/instances', [
  'body' => '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'addReadTokenRoleOnCreate' => null,
  'alias' => '',
  'config' => [
    
  ],
  'displayName' => '',
  'enabled' => null,
  'firstBrokerLoginFlowAlias' => '',
  'internalId' => '',
  'linkOnly' => null,
  'postBrokerLoginFlowAlias' => '',
  'providerId' => '',
  'storeToken' => null,
  'trustEmail' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'addReadTokenRoleOnCreate' => null,
  'alias' => '',
  'config' => [
    
  ],
  'displayName' => '',
  'enabled' => null,
  'firstBrokerLoginFlowAlias' => '',
  'internalId' => '',
  'linkOnly' => null,
  'postBrokerLoginFlowAlias' => '',
  'providerId' => '',
  'storeToken' => null,
  'trustEmail' => null
]));
$request->setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances');
$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}}/:realm/identity-provider/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/identity-provider/instances", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances"

payload = {
    "addReadTokenRoleOnCreate": False,
    "alias": "",
    "config": {},
    "displayName": "",
    "enabled": False,
    "firstBrokerLoginFlowAlias": "",
    "internalId": "",
    "linkOnly": False,
    "postBrokerLoginFlowAlias": "",
    "providerId": "",
    "storeToken": False,
    "trustEmail": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances"

payload <- "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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}}/:realm/identity-provider/instances")

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  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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/:realm/identity-provider/instances') do |req|
  req.body = "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances";

    let payload = json!({
        "addReadTokenRoleOnCreate": false,
        "alias": "",
        "config": json!({}),
        "displayName": "",
        "enabled": false,
        "firstBrokerLoginFlowAlias": "",
        "internalId": "",
        "linkOnly": false,
        "postBrokerLoginFlowAlias": "",
        "providerId": "",
        "storeToken": false,
        "trustEmail": false
    });

    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}}/:realm/identity-provider/instances \
  --header 'content-type: application/json' \
  --data '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}'
echo '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}' |  \
  http POST {{baseUrl}}/:realm/identity-provider/instances \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "addReadTokenRoleOnCreate": false,\n  "alias": "",\n  "config": {},\n  "displayName": "",\n  "enabled": false,\n  "firstBrokerLoginFlowAlias": "",\n  "internalId": "",\n  "linkOnly": false,\n  "postBrokerLoginFlowAlias": "",\n  "providerId": "",\n  "storeToken": false,\n  "trustEmail": false\n}' \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": [],
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete a mapper for the identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/identity-provider/instances/:alias/mappers/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/identity-provider/instances/:alias/mappers/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/identity-provider/instances/:alias/mappers/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
http DELETE {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/identity-provider/instances/:alias")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias"

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}}/:realm/identity-provider/instances/:alias"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias"

	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/:realm/identity-provider/instances/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias"))
    .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}}/:realm/identity-provider/instances/:alias")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .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}}/:realm/identity-provider/instances/:alias');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias';
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}}/:realm/identity-provider/instances/:alias',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias',
  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}}/:realm/identity-provider/instances/:alias'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/identity-provider/instances/:alias');

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}}/:realm/identity-provider/instances/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias';
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}}/:realm/identity-provider/instances/:alias"]
                                                       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}}/:realm/identity-provider/instances/:alias" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias",
  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}}/:realm/identity-provider/instances/:alias');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/identity-provider/instances/:alias")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias")

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/:realm/identity-provider/instances/:alias') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias";

    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}}/:realm/identity-provider/instances/:alias
http DELETE {{baseUrl}}/:realm/identity-provider/instances/:alias
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias")! 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 Export public broker configuration for identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias/export
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/export");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/instances/:alias/export")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/export"

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}}/:realm/identity-provider/instances/:alias/export"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias/export");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/export"

	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/:realm/identity-provider/instances/:alias/export HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/instances/:alias/export")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/export"))
    .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}}/:realm/identity-provider/instances/:alias/export")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/instances/:alias/export")
  .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}}/:realm/identity-provider/instances/:alias/export');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/export'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/export';
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}}/:realm/identity-provider/instances/:alias/export',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/export")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/export',
  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}}/:realm/identity-provider/instances/:alias/export'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/identity-provider/instances/:alias/export');

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}}/:realm/identity-provider/instances/:alias/export'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/export';
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}}/:realm/identity-provider/instances/:alias/export"]
                                                       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}}/:realm/identity-provider/instances/:alias/export" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/export",
  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}}/:realm/identity-provider/instances/:alias/export');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/export');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/export');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/export' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/export' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/instances/:alias/export")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/export"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/export"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/export")

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/:realm/identity-provider/instances/:alias/export') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/export";

    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}}/:realm/identity-provider/instances/:alias/export
http GET {{baseUrl}}/:realm/identity-provider/instances/:alias/export
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/export
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/export")! 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 Get identity providers (GET)
{{baseUrl}}/:realm/identity-provider/providers/:provider_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/providers/:provider_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/providers/:provider_id")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/providers/:provider_id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/providers/:provider_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/:realm/identity-provider/providers/:provider_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/providers/:provider_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/providers/:provider_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/providers/:provider_id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/providers/:provider_id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/providers/:provider_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/providers/:provider_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/providers/:provider_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/providers/:provider_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/providers/:provider_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/providers/:provider_id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/providers/:provider_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/:realm/identity-provider/providers/:provider_id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/providers/:provider_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}}/:realm/identity-provider/providers/:provider_id
http GET {{baseUrl}}/:realm/identity-provider/providers/:provider_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/providers/:provider_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/providers/:provider_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 Get identity providers
{{baseUrl}}/:realm/identity-provider/instances
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/instances")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances"

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}}/:realm/identity-provider/instances"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances"

	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/:realm/identity-provider/instances HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/instances")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances"))
    .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}}/:realm/identity-provider/instances")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/instances")
  .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}}/:realm/identity-provider/instances');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/instances'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances';
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}}/:realm/identity-provider/instances',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances',
  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}}/:realm/identity-provider/instances'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/identity-provider/instances');

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}}/:realm/identity-provider/instances'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances';
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}}/:realm/identity-provider/instances"]
                                                       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}}/:realm/identity-provider/instances" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances",
  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}}/:realm/identity-provider/instances');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/instances")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances")

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/:realm/identity-provider/instances') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances";

    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}}/:realm/identity-provider/instances
http GET {{baseUrl}}/:realm/identity-provider/instances
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances")! 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 Get mapper by id for the identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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/:realm/identity-provider/instances/:alias/mappers/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/instances/:alias/mappers/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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/:realm/identity-provider/instances/:alias/mappers/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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}}/:realm/identity-provider/instances/:alias/mappers/:id
http GET {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/: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 Get mapper types for identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types"

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}}/:realm/identity-provider/instances/:alias/mapper-types"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types"

	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/:realm/identity-provider/instances/:alias/mapper-types HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types"))
    .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}}/:realm/identity-provider/instances/:alias/mapper-types")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types")
  .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}}/:realm/identity-provider/instances/:alias/mapper-types');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types';
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}}/:realm/identity-provider/instances/:alias/mapper-types',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/mapper-types',
  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}}/:realm/identity-provider/instances/:alias/mapper-types'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types');

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}}/:realm/identity-provider/instances/:alias/mapper-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types';
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}}/:realm/identity-provider/instances/:alias/mapper-types"]
                                                       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}}/:realm/identity-provider/instances/:alias/mapper-types" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types",
  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}}/:realm/identity-provider/instances/:alias/mapper-types');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/instances/:alias/mapper-types")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types")

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/:realm/identity-provider/instances/:alias/mapper-types') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types";

    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}}/:realm/identity-provider/instances/:alias/mapper-types
http GET {{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/mapper-types")! 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 Get mappers for identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"

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}}/:realm/identity-provider/instances/:alias/mappers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"

	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/:realm/identity-provider/instances/:alias/mappers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"))
    .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}}/:realm/identity-provider/instances/:alias/mappers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
  .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}}/:realm/identity-provider/instances/:alias/mappers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers';
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}}/:realm/identity-provider/instances/:alias/mappers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/mappers',
  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}}/:realm/identity-provider/instances/:alias/mappers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers');

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}}/:realm/identity-provider/instances/:alias/mappers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers';
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}}/:realm/identity-provider/instances/:alias/mappers"]
                                                       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}}/:realm/identity-provider/instances/:alias/mappers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers",
  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}}/:realm/identity-provider/instances/:alias/mappers');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/instances/:alias/mappers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")

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/:realm/identity-provider/instances/:alias/mappers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers";

    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}}/:realm/identity-provider/instances/:alias/mappers
http GET {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers")! 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 Get the identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/instances/:alias")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias"

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}}/:realm/identity-provider/instances/:alias"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias"

	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/:realm/identity-provider/instances/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias"))
    .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}}/:realm/identity-provider/instances/:alias")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .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}}/:realm/identity-provider/instances/:alias');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias';
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}}/:realm/identity-provider/instances/:alias',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias',
  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}}/:realm/identity-provider/instances/:alias'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/identity-provider/instances/:alias');

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}}/:realm/identity-provider/instances/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias';
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}}/:realm/identity-provider/instances/:alias"]
                                                       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}}/:realm/identity-provider/instances/:alias" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias",
  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}}/:realm/identity-provider/instances/:alias');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/instances/:alias")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias")

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/:realm/identity-provider/instances/:alias') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias";

    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}}/:realm/identity-provider/instances/:alias
http GET {{baseUrl}}/:realm/identity-provider/instances/:alias
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias")! 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 Import identity provider from uploaded JSON file
{{baseUrl}}/:realm/identity-provider/import-config
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/import-config");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/identity-provider/import-config")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/import-config"

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}}/:realm/identity-provider/import-config"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/import-config");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/import-config"

	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/:realm/identity-provider/import-config HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/identity-provider/import-config")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/import-config"))
    .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}}/:realm/identity-provider/import-config")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/identity-provider/import-config")
  .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}}/:realm/identity-provider/import-config');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/identity-provider/import-config'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/import-config';
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}}/:realm/identity-provider/import-config',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/import-config")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/import-config',
  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}}/:realm/identity-provider/import-config'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/identity-provider/import-config');

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}}/:realm/identity-provider/import-config'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/import-config';
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}}/:realm/identity-provider/import-config"]
                                                       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}}/:realm/identity-provider/import-config" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/import-config",
  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}}/:realm/identity-provider/import-config');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/import-config');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/import-config');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/import-config' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/import-config' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/identity-provider/import-config")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/import-config"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/import-config"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/import-config")

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/:realm/identity-provider/import-config') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/import-config";

    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}}/:realm/identity-provider/import-config
http POST {{baseUrl}}/:realm/identity-provider/import-config
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/import-config
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/import-config")! 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 Return object stating whether client Authorization permissions have been initialized or not and a reference (2)
{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"

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}}/:realm/identity-provider/instances/:alias/management/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"

	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/:realm/identity-provider/instances/:alias/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"))
    .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}}/:realm/identity-provider/instances/:alias/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
  .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}}/:realm/identity-provider/instances/:alias/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions';
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}}/:realm/identity-provider/instances/:alias/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/management/permissions',
  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}}/:realm/identity-provider/instances/:alias/management/permissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions');

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}}/:realm/identity-provider/instances/:alias/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions';
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}}/:realm/identity-provider/instances/:alias/management/permissions"]
                                                       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}}/:realm/identity-provider/instances/:alias/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions",
  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}}/:realm/identity-provider/instances/:alias/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/identity-provider/instances/:alias/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")

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/:realm/identity-provider/instances/:alias/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions";

    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}}/:realm/identity-provider/instances/:alias/management/permissions
http GET {{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Return object stating whether client Authorization permissions have been initialized or not and a reference (3)
{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions
BODY json

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions");

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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions" {:content-type :json
                                                                                                            :form-params {:enabled false
                                                                                                                          :resource ""
                                                                                                                          :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"),
    Content = new StringContent("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/identity-provider/instances/:alias/management/permissions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"

	payload := strings.NewReader("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/identity-provider/instances/:alias/management/permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
  .header("content-type", "application/json")
  .body("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .asString();
const data = JSON.stringify({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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}}/:realm/identity-provider/instances/:alias/management/permissions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/management/permissions',
  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({enabled: false, resource: '', scopePermissions: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions',
  headers: {'content-type': 'application/json'},
  body: {enabled: false, resource: '', scopePermissions: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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 = @{ @"enabled": @NO,
                              @"resource": @"",
                              @"scopePermissions": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'enabled' => null,
    'resource' => '',
    'scopePermissions' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/identity-provider/instances/:alias/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"

payload = {
    "enabled": False,
    "resource": "",
    "scopePermissions": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions"

payload <- "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/identity-provider/instances/:alias/management/permissions') do |req|
  req.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/identity-provider/instances/:alias/management/permissions";

    let payload = json!({
        "enabled": false,
        "resource": "",
        "scopePermissions": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}' \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enabled": false,
  "resource": "",
  "scopePermissions": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update a mapper for the identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
BODY json

{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id" {:content-type :json
                                                                                                 :form-params {:config {}
                                                                                                               :id ""
                                                                                                               :identityProviderAlias ""
                                                                                                               :identityProviderMapper ""
                                                                                                               :name ""}})
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"),
    Content = new StringContent("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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}}/:realm/identity-provider/instances/:alias/mappers/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

	payload := strings.NewReader("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/identity-provider/instances/:alias/mappers/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 107

{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {},
  id: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {'content-type': 'application/json'},
  data: {
    config: {},
    id: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}'
};

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}}/:realm/identity-provider/instances/:alias/mappers/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {},\n  "id": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  config: {},
  id: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {'content-type': 'application/json'},
  body: {
    config: {},
    id: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    name: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {},
  id: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  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: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {'content-type': 'application/json'},
  data: {
    config: {},
    id: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}'
};

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 = @{ @"config": @{  },
                              @"id": @"",
                              @"identityProviderAlias": @"",
                              @"identityProviderMapper": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'config' => [
        
    ],
    'id' => '',
    'identityProviderAlias' => '',
    'identityProviderMapper' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id', [
  'body' => '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/identity-provider/instances/:alias/mappers/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

payload = {
    "config": {},
    "id": "",
    "identityProviderAlias": "",
    "identityProviderMapper": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id"

payload <- "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/identity-provider/instances/:alias/mappers/:id') do |req|
  req.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"name\": \"\"\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}}/:realm/identity-provider/instances/:alias/mappers/:id";

    let payload = json!({
        "config": json!({}),
        "id": "",
        "identityProviderAlias": "",
        "identityProviderMapper": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id \
  --header 'content-type: application/json' \
  --data '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}'
echo '{
  "config": {},
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {},\n  "id": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [],
  "id": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias/mappers/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update the identity provider
{{baseUrl}}/:realm/identity-provider/instances/:alias
BODY json

{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/identity-provider/instances/:alias");

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  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/identity-provider/instances/:alias" {:content-type :json
                                                                                     :form-params {:addReadTokenRoleOnCreate false
                                                                                                   :alias ""
                                                                                                   :config {}
                                                                                                   :displayName ""
                                                                                                   :enabled false
                                                                                                   :firstBrokerLoginFlowAlias ""
                                                                                                   :internalId ""
                                                                                                   :linkOnly false
                                                                                                   :postBrokerLoginFlowAlias ""
                                                                                                   :providerId ""
                                                                                                   :storeToken false
                                                                                                   :trustEmail false}})
require "http/client"

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/identity-provider/instances/:alias"),
    Content = new StringContent("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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}}/:realm/identity-provider/instances/:alias");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/identity-provider/instances/:alias"

	payload := strings.NewReader("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/identity-provider/instances/:alias HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 287

{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/identity-provider/instances/:alias"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .header("content-type", "application/json")
  .body("{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}")
  .asString();
const data = JSON.stringify({
  addReadTokenRoleOnCreate: false,
  alias: '',
  config: {},
  displayName: '',
  enabled: false,
  firstBrokerLoginFlowAlias: '',
  internalId: '',
  linkOnly: false,
  postBrokerLoginFlowAlias: '',
  providerId: '',
  storeToken: false,
  trustEmail: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    addReadTokenRoleOnCreate: false,
    alias: '',
    config: {},
    displayName: '',
    enabled: false,
    firstBrokerLoginFlowAlias: '',
    internalId: '',
    linkOnly: false,
    postBrokerLoginFlowAlias: '',
    providerId: '',
    storeToken: false,
    trustEmail: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}'
};

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}}/:realm/identity-provider/instances/:alias',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "addReadTokenRoleOnCreate": false,\n  "alias": "",\n  "config": {},\n  "displayName": "",\n  "enabled": false,\n  "firstBrokerLoginFlowAlias": "",\n  "internalId": "",\n  "linkOnly": false,\n  "postBrokerLoginFlowAlias": "",\n  "providerId": "",\n  "storeToken": false,\n  "trustEmail": false\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/identity-provider/instances/:alias")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/identity-provider/instances/:alias',
  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({
  addReadTokenRoleOnCreate: false,
  alias: '',
  config: {},
  displayName: '',
  enabled: false,
  firstBrokerLoginFlowAlias: '',
  internalId: '',
  linkOnly: false,
  postBrokerLoginFlowAlias: '',
  providerId: '',
  storeToken: false,
  trustEmail: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias',
  headers: {'content-type': 'application/json'},
  body: {
    addReadTokenRoleOnCreate: false,
    alias: '',
    config: {},
    displayName: '',
    enabled: false,
    firstBrokerLoginFlowAlias: '',
    internalId: '',
    linkOnly: false,
    postBrokerLoginFlowAlias: '',
    providerId: '',
    storeToken: false,
    trustEmail: false
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  addReadTokenRoleOnCreate: false,
  alias: '',
  config: {},
  displayName: '',
  enabled: false,
  firstBrokerLoginFlowAlias: '',
  internalId: '',
  linkOnly: false,
  postBrokerLoginFlowAlias: '',
  providerId: '',
  storeToken: false,
  trustEmail: false
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/identity-provider/instances/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    addReadTokenRoleOnCreate: false,
    alias: '',
    config: {},
    displayName: '',
    enabled: false,
    firstBrokerLoginFlowAlias: '',
    internalId: '',
    linkOnly: false,
    postBrokerLoginFlowAlias: '',
    providerId: '',
    storeToken: false,
    trustEmail: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/identity-provider/instances/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}'
};

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 = @{ @"addReadTokenRoleOnCreate": @NO,
                              @"alias": @"",
                              @"config": @{  },
                              @"displayName": @"",
                              @"enabled": @NO,
                              @"firstBrokerLoginFlowAlias": @"",
                              @"internalId": @"",
                              @"linkOnly": @NO,
                              @"postBrokerLoginFlowAlias": @"",
                              @"providerId": @"",
                              @"storeToken": @NO,
                              @"trustEmail": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/identity-provider/instances/:alias"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/identity-provider/instances/:alias" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/identity-provider/instances/:alias",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'addReadTokenRoleOnCreate' => null,
    'alias' => '',
    'config' => [
        
    ],
    'displayName' => '',
    'enabled' => null,
    'firstBrokerLoginFlowAlias' => '',
    'internalId' => '',
    'linkOnly' => null,
    'postBrokerLoginFlowAlias' => '',
    'providerId' => '',
    'storeToken' => null,
    'trustEmail' => null
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/identity-provider/instances/:alias', [
  'body' => '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'addReadTokenRoleOnCreate' => null,
  'alias' => '',
  'config' => [
    
  ],
  'displayName' => '',
  'enabled' => null,
  'firstBrokerLoginFlowAlias' => '',
  'internalId' => '',
  'linkOnly' => null,
  'postBrokerLoginFlowAlias' => '',
  'providerId' => '',
  'storeToken' => null,
  'trustEmail' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'addReadTokenRoleOnCreate' => null,
  'alias' => '',
  'config' => [
    
  ],
  'displayName' => '',
  'enabled' => null,
  'firstBrokerLoginFlowAlias' => '',
  'internalId' => '',
  'linkOnly' => null,
  'postBrokerLoginFlowAlias' => '',
  'providerId' => '',
  'storeToken' => null,
  'trustEmail' => null
]));
$request->setRequestUrl('{{baseUrl}}/:realm/identity-provider/instances/:alias');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/identity-provider/instances/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/identity-provider/instances/:alias", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/identity-provider/instances/:alias"

payload = {
    "addReadTokenRoleOnCreate": False,
    "alias": "",
    "config": {},
    "displayName": "",
    "enabled": False,
    "firstBrokerLoginFlowAlias": "",
    "internalId": "",
    "linkOnly": False,
    "postBrokerLoginFlowAlias": "",
    "providerId": "",
    "storeToken": False,
    "trustEmail": False
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/identity-provider/instances/:alias"

payload <- "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/identity-provider/instances/:alias")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/identity-provider/instances/:alias') do |req|
  req.body = "{\n  \"addReadTokenRoleOnCreate\": false,\n  \"alias\": \"\",\n  \"config\": {},\n  \"displayName\": \"\",\n  \"enabled\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"internalId\": \"\",\n  \"linkOnly\": false,\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"providerId\": \"\",\n  \"storeToken\": false,\n  \"trustEmail\": false\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}}/:realm/identity-provider/instances/:alias";

    let payload = json!({
        "addReadTokenRoleOnCreate": false,
        "alias": "",
        "config": json!({}),
        "displayName": "",
        "enabled": false,
        "firstBrokerLoginFlowAlias": "",
        "internalId": "",
        "linkOnly": false,
        "postBrokerLoginFlowAlias": "",
        "providerId": "",
        "storeToken": false,
        "trustEmail": false
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/identity-provider/instances/:alias \
  --header 'content-type: application/json' \
  --data '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}'
echo '{
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": {},
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
}' |  \
  http PUT {{baseUrl}}/:realm/identity-provider/instances/:alias \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "addReadTokenRoleOnCreate": false,\n  "alias": "",\n  "config": {},\n  "displayName": "",\n  "enabled": false,\n  "firstBrokerLoginFlowAlias": "",\n  "internalId": "",\n  "linkOnly": false,\n  "postBrokerLoginFlowAlias": "",\n  "providerId": "",\n  "storeToken": false,\n  "trustEmail": false\n}' \
  --output-document \
  - {{baseUrl}}/:realm/identity-provider/instances/:alias
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "addReadTokenRoleOnCreate": false,
  "alias": "",
  "config": [],
  "displayName": "",
  "enabled": false,
  "firstBrokerLoginFlowAlias": "",
  "internalId": "",
  "linkOnly": false,
  "postBrokerLoginFlowAlias": "",
  "providerId": "",
  "storeToken": false,
  "trustEmail": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/identity-provider/instances/:alias")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET get --realm-keys
{{baseUrl}}/:realm/keys
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/keys");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/keys")
require "http/client"

url = "{{baseUrl}}/:realm/keys"

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}}/:realm/keys"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/keys");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/keys"

	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/:realm/keys HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/keys")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/keys"))
    .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}}/:realm/keys")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/keys")
  .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}}/:realm/keys');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/keys'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/keys';
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}}/:realm/keys',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/keys")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/keys',
  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}}/:realm/keys'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/keys');

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}}/:realm/keys'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/keys';
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}}/:realm/keys"]
                                                       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}}/:realm/keys" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/keys",
  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}}/:realm/keys');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/keys');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/keys');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/keys' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/keys' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/keys")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/keys"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/keys"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/keys")

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/:realm/keys') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/keys";

    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}}/:realm/keys
http GET {{baseUrl}}/:realm/keys
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/keys
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/keys")! 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 Create a mapper (POST)
{{baseUrl}}/:realm/clients/:id/protocol-mappers/models
BODY json

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models");

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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models" {:content-type :json
                                                                                       :form-params {:config {}
                                                                                                     :id ""
                                                                                                     :name ""
                                                                                                     :protocol ""
                                                                                                     :protocolMapper ""}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/clients/:id/protocol-mappers/models"),
    Content = new StringContent("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/clients/:id/protocol-mappers/models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"

	payload := strings.NewReader("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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/:realm/clients/:id/protocol-mappers/models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 86

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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}}/:realm/clients/:id/protocol-mappers/models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
  .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/:realm/clients/:id/protocol-mappers/models',
  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({config: {}, id: '', name: '', protocol: '', protocolMapper: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  body: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''},
  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}}/:realm/clients/:id/protocol-mappers/models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

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}}/:realm/clients/:id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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 = @{ @"config": @{  },
                              @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"]
                                                       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}}/:realm/clients/:id/protocol-mappers/models" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models",
  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([
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]),
  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}}/:realm/clients/:id/protocol-mappers/models', [
  'body' => '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/models');
$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}}/:realm/clients/:id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/protocol-mappers/models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"

payload = {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"

payload <- "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/clients/:id/protocol-mappers/models")

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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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/:realm/clients/:id/protocol-mappers/models') do |req|
  req.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models";

    let payload = json!({
        "config": json!({}),
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": ""
    });

    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}}/:realm/clients/:id/protocol-mappers/models \
  --header 'content-type: application/json' \
  --data '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
echo '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}' |  \
  http POST {{baseUrl}}/:realm/clients/:id/protocol-mappers/models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/protocol-mappers/models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [],
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create a mapper
{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models
BODY json

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models");

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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models" {:content-type :json
                                                                                             :form-params {:config {}
                                                                                                           :id ""
                                                                                                           :name ""
                                                                                                           :protocol ""
                                                                                                           :protocolMapper ""}})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/client-scopes/:id/protocol-mappers/models"),
    Content = new StringContent("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/client-scopes/:id/protocol-mappers/models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"

	payload := strings.NewReader("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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/:realm/client-scopes/:id/protocol-mappers/models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 86

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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}}/:realm/client-scopes/:id/protocol-mappers/models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
  .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/:realm/client-scopes/:id/protocol-mappers/models',
  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({config: {}, id: '', name: '', protocol: '', protocolMapper: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  body: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''},
  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}}/:realm/client-scopes/:id/protocol-mappers/models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

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}}/:realm/client-scopes/:id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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 = @{ @"config": @{  },
                              @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"]
                                                       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}}/:realm/client-scopes/:id/protocol-mappers/models" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models",
  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([
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]),
  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}}/:realm/client-scopes/:id/protocol-mappers/models', [
  'body' => '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models');
$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}}/:realm/client-scopes/:id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/client-scopes/:id/protocol-mappers/models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"

payload = {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"

payload <- "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/client-scopes/:id/protocol-mappers/models")

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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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/:realm/client-scopes/:id/protocol-mappers/models') do |req|
  req.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models";

    let payload = json!({
        "config": json!({}),
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": ""
    });

    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}}/:realm/client-scopes/:id/protocol-mappers/models \
  --header 'content-type: application/json' \
  --data '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
echo '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}' |  \
  http POST {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [],
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create multiple mappers (POST)
{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models
BODY json

[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models");

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  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models" {:content-type :json
                                                                                           :form-params [{:config {}
                                                                                                          :id ""
                                                                                                          :name ""
                                                                                                          :protocol ""
                                                                                                          :protocolMapper ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models"),
    Content = new StringContent("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models"

	payload := strings.NewReader("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/clients/:id/protocol-mappers/add-models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 104

[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    config: {},
    id: '',
    name: '',
    protocol: '',
    protocolMapper: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]'
};

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}}/:realm/clients/:id/protocol-mappers/add-models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "config": {},\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models")
  .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/:realm/clients/:id/protocol-mappers/add-models',
  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([{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  body: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
  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}}/:realm/clients/:id/protocol-mappers/add-models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    config: {},
    id: '',
    name: '',
    protocol: '',
    protocolMapper: ''
  }
]);

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}}/:realm/clients/:id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]'
};

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 = @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models"]
                                                       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}}/:realm/clients/:id/protocol-mappers/add-models" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models",
  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([
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ]),
  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}}/:realm/clients/:id/protocol-mappers/add-models', [
  'body' => '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models');
$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}}/:realm/clients/:id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/protocol-mappers/add-models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models"

payload = [
    {
        "config": {},
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models"

payload <- "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models")

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  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/clients/:id/protocol-mappers/add-models') do |req|
  req.body = "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models";

    let payload = (
        json!({
            "config": json!({}),
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": ""
        })
    );

    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}}/:realm/clients/:id/protocol-mappers/add-models \
  --header 'content-type: application/json' \
  --data '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]'
echo '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "config": {},\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "config": [],
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/protocol-mappers/add-models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create multiple mappers
{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models
BODY json

[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models");

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  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models" {:content-type :json
                                                                                                 :form-params [{:config {}
                                                                                                                :id ""
                                                                                                                :name ""
                                                                                                                :protocol ""
                                                                                                                :protocolMapper ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models"),
    Content = new StringContent("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models"

	payload := strings.NewReader("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/client-scopes/:id/protocol-mappers/add-models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 104

[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    config: {},
    id: '',
    name: '',
    protocol: '',
    protocolMapper: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]'
};

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}}/:realm/client-scopes/:id/protocol-mappers/add-models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "config": {},\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models")
  .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/:realm/client-scopes/:id/protocol-mappers/add-models',
  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([{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  body: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
  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}}/:realm/client-scopes/:id/protocol-mappers/add-models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    config: {},
    id: '',
    name: '',
    protocol: '',
    protocolMapper: ''
  }
]);

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}}/:realm/client-scopes/:id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]'
};

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 = @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models"]
                                                       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}}/:realm/client-scopes/:id/protocol-mappers/add-models" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models",
  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([
    [
        'config' => [
                
        ],
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => ''
    ]
  ]),
  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}}/:realm/client-scopes/:id/protocol-mappers/add-models', [
  'body' => '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models');
$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}}/:realm/client-scopes/:id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/client-scopes/:id/protocol-mappers/add-models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models"

payload = [
    {
        "config": {},
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models"

payload <- "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models")

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  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/client-scopes/:id/protocol-mappers/add-models') do |req|
  req.body = "[\n  {\n    \"config\": {},\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models";

    let payload = (
        json!({
            "config": json!({}),
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": ""
        })
    );

    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}}/:realm/client-scopes/:id/protocol-mappers/add-models \
  --header 'content-type: application/json' \
  --data '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]'
echo '[
  {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "config": {},\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "config": [],
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/add-models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the mapper (DELETE)
{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

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}}/:realm/clients/:id1/protocol-mappers/models/:id2"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

	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/:realm/clients/:id1/protocol-mappers/models/:id2 HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"))
    .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}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .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}}/:realm/clients/:id1/protocol-mappers/models/:id2');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2';
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}}/:realm/clients/:id1/protocol-mappers/models/:id2',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2',
  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}}/:realm/clients/:id1/protocol-mappers/models/:id2'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');

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}}/:realm/clients/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2';
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}}/:realm/clients/:id1/protocol-mappers/models/:id2"]
                                                       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}}/:realm/clients/:id1/protocol-mappers/models/:id2" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2",
  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}}/:realm/clients/:id1/protocol-mappers/models/:id2');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")

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/:realm/clients/:id1/protocol-mappers/models/:id2') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2";

    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}}/:realm/clients/:id1/protocol-mappers/models/:id2
http DELETE {{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the mapper
{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

	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/:realm/client-scopes/:id1/protocol-mappers/models/:id2 HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"))
    .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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2';
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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');

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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2';
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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"]
                                                       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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2",
  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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")

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/:realm/client-scopes/:id1/protocol-mappers/models/:id2') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2";

    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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
http DELETE {{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")! 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 Get mapper by id (GET)
{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

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}}/:realm/clients/:id1/protocol-mappers/models/:id2"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

	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/:realm/clients/:id1/protocol-mappers/models/:id2 HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"))
    .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}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .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}}/:realm/clients/:id1/protocol-mappers/models/:id2');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2';
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}}/:realm/clients/:id1/protocol-mappers/models/:id2',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2',
  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}}/:realm/clients/:id1/protocol-mappers/models/:id2'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');

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}}/:realm/clients/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2';
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}}/:realm/clients/:id1/protocol-mappers/models/:id2"]
                                                       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}}/:realm/clients/:id1/protocol-mappers/models/:id2" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2",
  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}}/:realm/clients/:id1/protocol-mappers/models/:id2');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")

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/:realm/clients/:id1/protocol-mappers/models/:id2') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2";

    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}}/:realm/clients/:id1/protocol-mappers/models/:id2
http GET {{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")! 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 Get mapper by id
{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

	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/:realm/client-scopes/:id1/protocol-mappers/models/:id2 HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"))
    .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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2';
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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');

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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2';
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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"]
                                                       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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2",
  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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")

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/:realm/client-scopes/:id1/protocol-mappers/models/:id2') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2";

    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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
http GET {{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")! 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 Get mappers (GET)
{{baseUrl}}/:realm/clients/:id/protocol-mappers/models
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"

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}}/:realm/clients/:id/protocol-mappers/models"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"

	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/:realm/clients/:id/protocol-mappers/models HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"))
    .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}}/:realm/clients/:id/protocol-mappers/models")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
  .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}}/:realm/clients/:id/protocol-mappers/models');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models';
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}}/:realm/clients/:id/protocol-mappers/models',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/protocol-mappers/models',
  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}}/:realm/clients/:id/protocol-mappers/models'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models');

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}}/:realm/clients/:id/protocol-mappers/models'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models';
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}}/:realm/clients/:id/protocol-mappers/models"]
                                                       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}}/:realm/clients/:id/protocol-mappers/models" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models",
  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}}/:realm/clients/:id/protocol-mappers/models');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/models');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/models');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/protocol-mappers/models' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/protocol-mappers/models")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")

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/:realm/clients/:id/protocol-mappers/models') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models";

    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}}/:realm/clients/:id/protocol-mappers/models
http GET {{baseUrl}}/:realm/clients/:id/protocol-mappers/models
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/protocol-mappers/models
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/protocol-mappers/models")! 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 Get mappers by name for a specific protocol (GET)
{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol"

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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol"

	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/:realm/clients/:id/protocol-mappers/protocol/:protocol HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol"))
    .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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol")
  .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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol';
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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/protocol-mappers/protocol/:protocol',
  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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol');

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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol';
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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol"]
                                                       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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol",
  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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/protocol-mappers/protocol/:protocol")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol")

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/:realm/clients/:id/protocol-mappers/protocol/:protocol') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol";

    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}}/:realm/clients/:id/protocol-mappers/protocol/:protocol
http GET {{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/protocol-mappers/protocol/:protocol")! 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 Get mappers by name for a specific protocol
{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol"

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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol"

	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/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol"))
    .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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")
  .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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol';
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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol',
  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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol');

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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol';
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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol"]
                                                       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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol",
  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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")

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/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol";

    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}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol
http GET {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/protocol/:protocol")! 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 Get mappers
{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"

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}}/:realm/client-scopes/:id/protocol-mappers/models"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"

	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/:realm/client-scopes/:id/protocol-mappers/models HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"))
    .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}}/:realm/client-scopes/:id/protocol-mappers/models")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
  .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}}/:realm/client-scopes/:id/protocol-mappers/models');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models';
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}}/:realm/client-scopes/:id/protocol-mappers/models',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/protocol-mappers/models',
  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}}/:realm/client-scopes/:id/protocol-mappers/models'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models');

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}}/:realm/client-scopes/:id/protocol-mappers/models'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models';
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}}/:realm/client-scopes/:id/protocol-mappers/models"]
                                                       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}}/:realm/client-scopes/:id/protocol-mappers/models" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models",
  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}}/:realm/client-scopes/:id/protocol-mappers/models');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/protocol-mappers/models")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")

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/:realm/client-scopes/:id/protocol-mappers/models') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models";

    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}}/:realm/client-scopes/:id/protocol-mappers/models
http GET {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/protocol-mappers/models")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update the mapper (PUT)
{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
BODY json

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2");

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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2" {:content-type :json
                                                                                            :form-params {:config {}
                                                                                                          :id ""
                                                                                                          :name ""
                                                                                                          :protocol ""
                                                                                                          :protocolMapper ""}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"),
    Content = new StringContent("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/clients/:id1/protocol-mappers/models/:id2");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

	payload := strings.NewReader("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2 HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 86

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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}}/:realm/clients/:id1/protocol-mappers/models/:id2',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2',
  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({config: {}, id: '', name: '', protocol: '', protocolMapper: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2',
  headers: {'content-type': 'application/json'},
  body: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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 = @{ @"config": @{  },
                              @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2', [
  'body' => '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

payload = {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2"

payload <- "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/clients/:id1/protocol-mappers/models/:id2') do |req|
  req.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/clients/:id1/protocol-mappers/models/:id2";

    let payload = json!({
        "config": json!({}),
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2 \
  --header 'content-type: application/json' \
  --data '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
echo '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}' |  \
  http PUT {{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2 \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [],
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id1/protocol-mappers/models/:id2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update the mapper
{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
BODY json

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2");

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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2" {:content-type :json
                                                                                                  :form-params {:config {}
                                                                                                                :id ""
                                                                                                                :name ""
                                                                                                                :protocol ""
                                                                                                                :protocolMapper ""}})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"),
    Content = new StringContent("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

	payload := strings.NewReader("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2 HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 86

{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  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({config: {}, id: '', name: '', protocol: '', protocolMapper: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  headers: {'content-type': 'application/json'},
  body: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  config: {},
  id: '',
  name: '',
  protocol: '',
  protocolMapper: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2',
  headers: {'content-type': 'application/json'},
  data: {config: {}, id: '', name: '', protocol: '', protocolMapper: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}'
};

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 = @{ @"config": @{  },
                              @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'config' => [
        
    ],
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2', [
  'body' => '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'config' => [
    
  ],
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

payload = {
    "config": {},
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2"

payload <- "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/client-scopes/:id1/protocol-mappers/models/:id2') do |req|
  req.body = "{\n  \"config\": {},\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\"\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}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2";

    let payload = json!({
        "config": json!({}),
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2 \
  --header 'content-type: application/json' \
  --data '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}'
echo '{
  "config": {},
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
}' |  \
  http PUT {{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2 \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {},\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "config": [],
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id1/protocol-mappers/models/:id2")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Base path for importing clients under this realm.
{{baseUrl}}/:realm/client-description-converter
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-description-converter");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/client-description-converter")
require "http/client"

url = "{{baseUrl}}/:realm/client-description-converter"

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}}/:realm/client-description-converter"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-description-converter");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-description-converter"

	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/:realm/client-description-converter HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/client-description-converter")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-description-converter"))
    .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}}/:realm/client-description-converter")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/client-description-converter")
  .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}}/:realm/client-description-converter');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-description-converter'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-description-converter';
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}}/:realm/client-description-converter',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-description-converter")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-description-converter',
  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}}/:realm/client-description-converter'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/client-description-converter');

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}}/:realm/client-description-converter'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-description-converter';
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}}/:realm/client-description-converter"]
                                                       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}}/:realm/client-description-converter" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-description-converter",
  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}}/:realm/client-description-converter');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-description-converter');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-description-converter');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-description-converter' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-description-converter' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/client-description-converter")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-description-converter"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-description-converter"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-description-converter")

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/:realm/client-description-converter') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-description-converter";

    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}}/:realm/client-description-converter
http POST {{baseUrl}}/:realm/client-description-converter
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/client-description-converter
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-description-converter")! 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 Clear cache of external public keys (Public keys of clients or Identity providers)
{{baseUrl}}/:realm/clear-keys-cache
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clear-keys-cache");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clear-keys-cache")
require "http/client"

url = "{{baseUrl}}/:realm/clear-keys-cache"

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}}/:realm/clear-keys-cache"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clear-keys-cache");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clear-keys-cache"

	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/:realm/clear-keys-cache HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clear-keys-cache")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clear-keys-cache"))
    .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}}/:realm/clear-keys-cache")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clear-keys-cache")
  .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}}/:realm/clear-keys-cache');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/:realm/clear-keys-cache'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clear-keys-cache';
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}}/:realm/clear-keys-cache',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clear-keys-cache")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clear-keys-cache',
  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}}/:realm/clear-keys-cache'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clear-keys-cache');

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}}/:realm/clear-keys-cache'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clear-keys-cache';
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}}/:realm/clear-keys-cache"]
                                                       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}}/:realm/clear-keys-cache" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clear-keys-cache",
  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}}/:realm/clear-keys-cache');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clear-keys-cache');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clear-keys-cache');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clear-keys-cache' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clear-keys-cache' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clear-keys-cache")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clear-keys-cache"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clear-keys-cache"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clear-keys-cache")

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/:realm/clear-keys-cache') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clear-keys-cache";

    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}}/:realm/clear-keys-cache
http POST {{baseUrl}}/:realm/clear-keys-cache
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clear-keys-cache
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clear-keys-cache")! 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 Clear realm cache
{{baseUrl}}/:realm/clear-realm-cache
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clear-realm-cache");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clear-realm-cache")
require "http/client"

url = "{{baseUrl}}/:realm/clear-realm-cache"

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}}/:realm/clear-realm-cache"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clear-realm-cache");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clear-realm-cache"

	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/:realm/clear-realm-cache HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clear-realm-cache")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clear-realm-cache"))
    .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}}/:realm/clear-realm-cache")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clear-realm-cache")
  .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}}/:realm/clear-realm-cache');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/:realm/clear-realm-cache'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clear-realm-cache';
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}}/:realm/clear-realm-cache',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clear-realm-cache")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clear-realm-cache',
  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}}/:realm/clear-realm-cache'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clear-realm-cache');

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}}/:realm/clear-realm-cache'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clear-realm-cache';
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}}/:realm/clear-realm-cache"]
                                                       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}}/:realm/clear-realm-cache" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clear-realm-cache",
  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}}/:realm/clear-realm-cache');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clear-realm-cache');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clear-realm-cache');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clear-realm-cache' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clear-realm-cache' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clear-realm-cache")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clear-realm-cache"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clear-realm-cache"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clear-realm-cache")

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/:realm/clear-realm-cache') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clear-realm-cache";

    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}}/:realm/clear-realm-cache
http POST {{baseUrl}}/:realm/clear-realm-cache
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clear-realm-cache
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clear-realm-cache")! 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 Clear user cache
{{baseUrl}}/:realm/clear-user-cache
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clear-user-cache");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clear-user-cache")
require "http/client"

url = "{{baseUrl}}/:realm/clear-user-cache"

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}}/:realm/clear-user-cache"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clear-user-cache");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clear-user-cache"

	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/:realm/clear-user-cache HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clear-user-cache")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clear-user-cache"))
    .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}}/:realm/clear-user-cache")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clear-user-cache")
  .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}}/:realm/clear-user-cache');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/:realm/clear-user-cache'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clear-user-cache';
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}}/:realm/clear-user-cache',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clear-user-cache")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clear-user-cache',
  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}}/:realm/clear-user-cache'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/clear-user-cache');

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}}/:realm/clear-user-cache'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clear-user-cache';
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}}/:realm/clear-user-cache"]
                                                       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}}/:realm/clear-user-cache" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clear-user-cache",
  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}}/:realm/clear-user-cache');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clear-user-cache');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clear-user-cache');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clear-user-cache' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clear-user-cache' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/clear-user-cache")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clear-user-cache"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clear-user-cache"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clear-user-cache")

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/:realm/clear-user-cache') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clear-user-cache";

    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}}/:realm/clear-user-cache
http POST {{baseUrl}}/:realm/clear-user-cache
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/clear-user-cache
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clear-user-cache")! 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()
DELETE Delete all admin events
{{baseUrl}}/:realm/admin-events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/admin-events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/admin-events")
require "http/client"

url = "{{baseUrl}}/:realm/admin-events"

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}}/:realm/admin-events"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/admin-events");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/admin-events"

	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/:realm/admin-events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/admin-events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/admin-events"))
    .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}}/:realm/admin-events")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/admin-events")
  .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}}/:realm/admin-events');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/admin-events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/admin-events';
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}}/:realm/admin-events',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/admin-events")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/admin-events',
  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}}/:realm/admin-events'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/admin-events');

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}}/:realm/admin-events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/admin-events';
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}}/:realm/admin-events"]
                                                       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}}/:realm/admin-events" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/admin-events",
  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}}/:realm/admin-events');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/admin-events');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/admin-events');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/admin-events' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/admin-events' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/admin-events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/admin-events"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/admin-events"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/admin-events")

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/:realm/admin-events') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/admin-events";

    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}}/:realm/admin-events
http DELETE {{baseUrl}}/:realm/admin-events
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/admin-events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/admin-events")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete all events
{{baseUrl}}/:realm/events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/events")
require "http/client"

url = "{{baseUrl}}/:realm/events"

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}}/:realm/events"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/events");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/events"

	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/:realm/events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/events"))
    .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}}/:realm/events")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/events")
  .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}}/:realm/events');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/events';
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}}/:realm/events',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/events")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/events',
  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}}/:realm/events'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/events');

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}}/:realm/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/events';
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}}/:realm/events"]
                                                       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}}/:realm/events" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/events",
  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}}/:realm/events');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/events');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/events');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/events' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/events' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/events"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/events"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/events")

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/:realm/events') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/events";

    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}}/:realm/events
http DELETE {{baseUrl}}/:realm/events
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/events")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the realm
{{baseUrl}}/:realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm")
require "http/client"

url = "{{baseUrl}}/:realm"

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}}/:realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm"

	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/:realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm"))
    .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}}/:realm")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm")
  .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}}/:realm');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm';
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}}/:realm',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm',
  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}}/:realm'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm');

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}}/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm';
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}}/:realm"]
                                                       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}}/:realm" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm",
  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}}/:realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm")

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/:realm') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm";

    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}}/:realm
http DELETE {{baseUrl}}/:realm
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm")! 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 Get admin events Returns all admin events, or filters events based on URL query parameters listed here
{{baseUrl}}/:realm/admin-events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/admin-events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/admin-events")
require "http/client"

url = "{{baseUrl}}/:realm/admin-events"

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}}/:realm/admin-events"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/admin-events");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/admin-events"

	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/:realm/admin-events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/admin-events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/admin-events"))
    .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}}/:realm/admin-events")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/admin-events")
  .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}}/:realm/admin-events');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/admin-events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/admin-events';
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}}/:realm/admin-events',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/admin-events")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/admin-events',
  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}}/:realm/admin-events'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/admin-events');

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}}/:realm/admin-events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/admin-events';
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}}/:realm/admin-events"]
                                                       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}}/:realm/admin-events" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/admin-events",
  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}}/:realm/admin-events');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/admin-events');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/admin-events');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/admin-events' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/admin-events' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/admin-events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/admin-events"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/admin-events"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/admin-events")

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/:realm/admin-events') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/admin-events";

    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}}/:realm/admin-events
http GET {{baseUrl}}/:realm/admin-events
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/admin-events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/admin-events")! 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 Get client session stats Returns a JSON map.
{{baseUrl}}/:realm/client-session-stats
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-session-stats");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-session-stats")
require "http/client"

url = "{{baseUrl}}/:realm/client-session-stats"

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}}/:realm/client-session-stats"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-session-stats");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-session-stats"

	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/:realm/client-session-stats HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-session-stats")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-session-stats"))
    .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}}/:realm/client-session-stats")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-session-stats")
  .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}}/:realm/client-session-stats');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/client-session-stats'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-session-stats';
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}}/:realm/client-session-stats',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-session-stats")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-session-stats',
  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}}/:realm/client-session-stats'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-session-stats');

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}}/:realm/client-session-stats'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-session-stats';
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}}/:realm/client-session-stats"]
                                                       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}}/:realm/client-session-stats" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-session-stats",
  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}}/:realm/client-session-stats');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-session-stats');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-session-stats');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-session-stats' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-session-stats' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-session-stats")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-session-stats"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-session-stats"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-session-stats")

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/:realm/client-session-stats') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-session-stats";

    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}}/:realm/client-session-stats
http GET {{baseUrl}}/:realm/client-session-stats
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-session-stats
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-session-stats")! 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 Get events Returns all events, or filters them based on URL query parameters listed here
{{baseUrl}}/:realm/events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/events")
require "http/client"

url = "{{baseUrl}}/:realm/events"

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}}/:realm/events"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/events");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/events"

	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/:realm/events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/events"))
    .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}}/:realm/events")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/events")
  .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}}/:realm/events');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/events';
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}}/:realm/events',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/events")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/events',
  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}}/:realm/events'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/events');

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}}/:realm/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/events';
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}}/:realm/events"]
                                                       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}}/:realm/events" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/events",
  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}}/:realm/events');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/events');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/events');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/events' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/events' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/events"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/events"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/events")

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/:realm/events') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/events";

    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}}/:realm/events
http GET {{baseUrl}}/:realm/events
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/events")! 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 Get group hierarchy.
{{baseUrl}}/:realm/default-groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/default-groups")
require "http/client"

url = "{{baseUrl}}/:realm/default-groups"

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}}/:realm/default-groups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-groups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-groups"

	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/:realm/default-groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/default-groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-groups"))
    .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}}/:realm/default-groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/default-groups")
  .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}}/:realm/default-groups');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/default-groups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-groups';
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}}/:realm/default-groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-groups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-groups',
  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}}/:realm/default-groups'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/default-groups');

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}}/:realm/default-groups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-groups';
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}}/:realm/default-groups"]
                                                       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}}/:realm/default-groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-groups",
  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}}/:realm/default-groups');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/default-groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-groups")

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/:realm/default-groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-groups";

    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}}/:realm/default-groups
http GET {{baseUrl}}/:realm/default-groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/default-groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-groups")! 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 Get realm default client scopes.
{{baseUrl}}/:realm/default-default-client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-default-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/default-default-client-scopes")
require "http/client"

url = "{{baseUrl}}/:realm/default-default-client-scopes"

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}}/:realm/default-default-client-scopes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-default-client-scopes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-default-client-scopes"

	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/:realm/default-default-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/default-default-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-default-client-scopes"))
    .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}}/:realm/default-default-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/default-default-client-scopes")
  .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}}/:realm/default-default-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/default-default-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-default-client-scopes';
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}}/:realm/default-default-client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-default-client-scopes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-default-client-scopes',
  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}}/:realm/default-default-client-scopes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/default-default-client-scopes');

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}}/:realm/default-default-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-default-client-scopes';
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}}/:realm/default-default-client-scopes"]
                                                       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}}/:realm/default-default-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-default-client-scopes",
  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}}/:realm/default-default-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-default-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-default-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-default-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-default-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/default-default-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-default-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-default-client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-default-client-scopes")

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/:realm/default-default-client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-default-client-scopes";

    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}}/:realm/default-default-client-scopes
http GET {{baseUrl}}/:realm/default-default-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/default-default-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-default-client-scopes")! 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 Get realm optional client scopes.
{{baseUrl}}/:realm/default-optional-client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-optional-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/default-optional-client-scopes")
require "http/client"

url = "{{baseUrl}}/:realm/default-optional-client-scopes"

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}}/:realm/default-optional-client-scopes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-optional-client-scopes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-optional-client-scopes"

	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/:realm/default-optional-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/default-optional-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-optional-client-scopes"))
    .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}}/:realm/default-optional-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/default-optional-client-scopes")
  .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}}/:realm/default-optional-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/default-optional-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-optional-client-scopes';
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}}/:realm/default-optional-client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-optional-client-scopes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-optional-client-scopes',
  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}}/:realm/default-optional-client-scopes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/default-optional-client-scopes');

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}}/:realm/default-optional-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-optional-client-scopes';
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}}/:realm/default-optional-client-scopes"]
                                                       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}}/:realm/default-optional-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-optional-client-scopes",
  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}}/:realm/default-optional-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-optional-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-optional-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-optional-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-optional-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/default-optional-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-optional-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-optional-client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-optional-client-scopes")

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/:realm/default-optional-client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-optional-client-scopes";

    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}}/:realm/default-optional-client-scopes
http GET {{baseUrl}}/:realm/default-optional-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/default-optional-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-optional-client-scopes")! 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 Get the events provider configuration Returns JSON object with events provider configuration
{{baseUrl}}/:realm/events/config
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/events/config");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/events/config")
require "http/client"

url = "{{baseUrl}}/:realm/events/config"

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}}/:realm/events/config"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/events/config");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/events/config"

	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/:realm/events/config HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/events/config")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/events/config"))
    .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}}/:realm/events/config")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/events/config")
  .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}}/:realm/events/config');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/events/config'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/events/config';
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}}/:realm/events/config',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/events/config")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/events/config',
  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}}/:realm/events/config'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/events/config');

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}}/:realm/events/config'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/events/config';
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}}/:realm/events/config"]
                                                       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}}/:realm/events/config" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/events/config",
  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}}/:realm/events/config');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/events/config');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/events/config');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/events/config' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/events/config' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/events/config")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/events/config"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/events/config"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/events/config")

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/:realm/events/config') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/events/config";

    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}}/:realm/events/config
http GET {{baseUrl}}/:realm/events/config
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/events/config
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/events/config")! 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 Get the top-level representation of the realm It will not include nested information like User and Client representations.
{{baseUrl}}/:realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm")
require "http/client"

url = "{{baseUrl}}/:realm"

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}}/:realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm"

	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/:realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm"))
    .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}}/:realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm")
  .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}}/:realm');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm';
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}}/:realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm',
  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}}/:realm'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm');

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}}/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm';
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}}/:realm"]
                                                       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}}/:realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm",
  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}}/:realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm")

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/:realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm";

    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}}/:realm
http GET {{baseUrl}}/:realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm")! 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 Import a realm Imports a realm from a full representation of that realm.
{{baseUrl}}/
BODY json

{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/");

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  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/" {:content-type :json
                                             :form-params {:accessCodeLifespan 0
                                                           :accessCodeLifespanLogin 0
                                                           :accessCodeLifespanUserAction 0
                                                           :accessTokenLifespan 0
                                                           :accessTokenLifespanForImplicitFlow 0
                                                           :accountTheme ""
                                                           :actionTokenGeneratedByAdminLifespan 0
                                                           :actionTokenGeneratedByUserLifespan 0
                                                           :adminEventsDetailsEnabled false
                                                           :adminEventsEnabled false
                                                           :adminTheme ""
                                                           :attributes {}
                                                           :authenticationFlows [{:alias ""
                                                                                  :authenticationExecutions [{:authenticator ""
                                                                                                              :authenticatorConfig ""
                                                                                                              :authenticatorFlow false
                                                                                                              :autheticatorFlow false
                                                                                                              :flowAlias ""
                                                                                                              :priority 0
                                                                                                              :requirement ""
                                                                                                              :userSetupAllowed false}]
                                                                                  :builtIn false
                                                                                  :description ""
                                                                                  :id ""
                                                                                  :providerId ""
                                                                                  :topLevel false}]
                                                           :authenticatorConfig [{:alias ""
                                                                                  :config {}
                                                                                  :id ""}]
                                                           :browserFlow ""
                                                           :browserSecurityHeaders {}
                                                           :bruteForceProtected false
                                                           :clientAuthenticationFlow ""
                                                           :clientScopeMappings {}
                                                           :clientScopes [{:attributes {}
                                                                           :description ""
                                                                           :id ""
                                                                           :name ""
                                                                           :protocol ""
                                                                           :protocolMappers [{:config {}
                                                                                              :id ""
                                                                                              :name ""
                                                                                              :protocol ""
                                                                                              :protocolMapper ""}]}]
                                                           :clientSessionIdleTimeout 0
                                                           :clientSessionMaxLifespan 0
                                                           :clients [{:access {}
                                                                      :adminUrl ""
                                                                      :alwaysDisplayInConsole false
                                                                      :attributes {}
                                                                      :authenticationFlowBindingOverrides {}
                                                                      :authorizationServicesEnabled false
                                                                      :authorizationSettings {:allowRemoteResourceManagement false
                                                                                              :clientId ""
                                                                                              :decisionStrategy ""
                                                                                              :id ""
                                                                                              :name ""
                                                                                              :policies [{:config {}
                                                                                                          :decisionStrategy ""
                                                                                                          :description ""
                                                                                                          :id ""
                                                                                                          :logic ""
                                                                                                          :name ""
                                                                                                          :owner ""
                                                                                                          :policies []
                                                                                                          :resources []
                                                                                                          :resourcesData [{:attributes {}
                                                                                                                           :displayName ""
                                                                                                                           :icon_uri ""
                                                                                                                           :id ""
                                                                                                                           :name ""
                                                                                                                           :ownerManagedAccess false
                                                                                                                           :scopes [{:displayName ""
                                                                                                                                     :iconUri ""
                                                                                                                                     :id ""
                                                                                                                                     :name ""
                                                                                                                                     :policies []
                                                                                                                                     :resources []}]
                                                                                                                           :type ""
                                                                                                                           :uris []}]
                                                                                                          :scopes []
                                                                                                          :scopesData [{}]
                                                                                                          :type ""}]
                                                                                              :policyEnforcementMode ""
                                                                                              :resources [{}]
                                                                                              :scopes [{}]}
                                                                      :baseUrl ""
                                                                      :bearerOnly false
                                                                      :clientAuthenticatorType ""
                                                                      :clientId ""
                                                                      :consentRequired false
                                                                      :defaultClientScopes []
                                                                      :defaultRoles []
                                                                      :description ""
                                                                      :directAccessGrantsEnabled false
                                                                      :enabled false
                                                                      :frontchannelLogout false
                                                                      :fullScopeAllowed false
                                                                      :id ""
                                                                      :implicitFlowEnabled false
                                                                      :name ""
                                                                      :nodeReRegistrationTimeout 0
                                                                      :notBefore 0
                                                                      :optionalClientScopes []
                                                                      :origin ""
                                                                      :protocol ""
                                                                      :protocolMappers [{}]
                                                                      :publicClient false
                                                                      :redirectUris []
                                                                      :registeredNodes {}
                                                                      :registrationAccessToken ""
                                                                      :rootUrl ""
                                                                      :secret ""
                                                                      :serviceAccountsEnabled false
                                                                      :standardFlowEnabled false
                                                                      :surrogateAuthRequired false
                                                                      :webOrigins []}]
                                                           :components {:empty false
                                                                        :loadFactor ""
                                                                        :threshold 0}
                                                           :defaultDefaultClientScopes []
                                                           :defaultGroups []
                                                           :defaultLocale ""
                                                           :defaultOptionalClientScopes []
                                                           :defaultRoles []
                                                           :defaultSignatureAlgorithm ""
                                                           :directGrantFlow ""
                                                           :displayName ""
                                                           :displayNameHtml ""
                                                           :dockerAuthenticationFlow ""
                                                           :duplicateEmailsAllowed false
                                                           :editUsernameAllowed false
                                                           :emailTheme ""
                                                           :enabled false
                                                           :enabledEventTypes []
                                                           :eventsEnabled false
                                                           :eventsExpiration 0
                                                           :eventsListeners []
                                                           :failureFactor 0
                                                           :federatedUsers [{:access {}
                                                                             :attributes {}
                                                                             :clientConsents [{:clientId ""
                                                                                               :createdDate 0
                                                                                               :grantedClientScopes []
                                                                                               :lastUpdatedDate 0}]
                                                                             :clientRoles {}
                                                                             :createdTimestamp 0
                                                                             :credentials [{:createdDate 0
                                                                                            :credentialData ""
                                                                                            :id ""
                                                                                            :priority 0
                                                                                            :secretData ""
                                                                                            :temporary false
                                                                                            :type ""
                                                                                            :userLabel ""
                                                                                            :value ""}]
                                                                             :disableableCredentialTypes []
                                                                             :email ""
                                                                             :emailVerified false
                                                                             :enabled false
                                                                             :federatedIdentities [{:identityProvider ""
                                                                                                    :userId ""
                                                                                                    :userName ""}]
                                                                             :federationLink ""
                                                                             :firstName ""
                                                                             :groups []
                                                                             :id ""
                                                                             :lastName ""
                                                                             :notBefore 0
                                                                             :origin ""
                                                                             :realmRoles []
                                                                             :requiredActions []
                                                                             :self ""
                                                                             :serviceAccountClientId ""
                                                                             :username ""}]
                                                           :groups [{:access {}
                                                                     :attributes {}
                                                                     :clientRoles {}
                                                                     :id ""
                                                                     :name ""
                                                                     :path ""
                                                                     :realmRoles []
                                                                     :subGroups []}]
                                                           :id ""
                                                           :identityProviderMappers [{:config {}
                                                                                      :id ""
                                                                                      :identityProviderAlias ""
                                                                                      :identityProviderMapper ""
                                                                                      :name ""}]
                                                           :identityProviders [{:addReadTokenRoleOnCreate false
                                                                                :alias ""
                                                                                :config {}
                                                                                :displayName ""
                                                                                :enabled false
                                                                                :firstBrokerLoginFlowAlias ""
                                                                                :internalId ""
                                                                                :linkOnly false
                                                                                :postBrokerLoginFlowAlias ""
                                                                                :providerId ""
                                                                                :storeToken false
                                                                                :trustEmail false}]
                                                           :internationalizationEnabled false
                                                           :keycloakVersion ""
                                                           :loginTheme ""
                                                           :loginWithEmailAllowed false
                                                           :maxDeltaTimeSeconds 0
                                                           :maxFailureWaitSeconds 0
                                                           :minimumQuickLoginWaitSeconds 0
                                                           :notBefore 0
                                                           :offlineSessionIdleTimeout 0
                                                           :offlineSessionMaxLifespan 0
                                                           :offlineSessionMaxLifespanEnabled false
                                                           :otpPolicyAlgorithm ""
                                                           :otpPolicyDigits 0
                                                           :otpPolicyInitialCounter 0
                                                           :otpPolicyLookAheadWindow 0
                                                           :otpPolicyPeriod 0
                                                           :otpPolicyType ""
                                                           :otpSupportedApplications []
                                                           :passwordPolicy ""
                                                           :permanentLockout false
                                                           :protocolMappers [{}]
                                                           :quickLoginCheckMilliSeconds 0
                                                           :realm ""
                                                           :refreshTokenMaxReuse 0
                                                           :registrationAllowed false
                                                           :registrationEmailAsUsername false
                                                           :registrationFlow ""
                                                           :rememberMe false
                                                           :requiredActions [{:alias ""
                                                                              :config {}
                                                                              :defaultAction false
                                                                              :enabled false
                                                                              :name ""
                                                                              :priority 0
                                                                              :providerId ""}]
                                                           :resetCredentialsFlow ""
                                                           :resetPasswordAllowed false
                                                           :revokeRefreshToken false
                                                           :roles {:client {}
                                                                   :realm [{:attributes {}
                                                                            :clientRole false
                                                                            :composite false
                                                                            :composites {:client {}
                                                                                         :realm []}
                                                                            :containerId ""
                                                                            :description ""
                                                                            :id ""
                                                                            :name ""}]}
                                                           :scopeMappings [{:client ""
                                                                            :clientScope ""
                                                                            :roles []
                                                                            :self ""}]
                                                           :smtpServer {}
                                                           :sslRequired ""
                                                           :ssoSessionIdleTimeout 0
                                                           :ssoSessionIdleTimeoutRememberMe 0
                                                           :ssoSessionMaxLifespan 0
                                                           :ssoSessionMaxLifespanRememberMe 0
                                                           :supportedLocales []
                                                           :userFederationMappers [{:config {}
                                                                                    :federationMapperType ""
                                                                                    :federationProviderDisplayName ""
                                                                                    :id ""
                                                                                    :name ""}]
                                                           :userFederationProviders [{:changedSyncPeriod 0
                                                                                      :config {}
                                                                                      :displayName ""
                                                                                      :fullSyncPeriod 0
                                                                                      :id ""
                                                                                      :lastSync 0
                                                                                      :priority 0
                                                                                      :providerName ""}]
                                                           :userManagedAccessAllowed false
                                                           :users [{}]
                                                           :verifyEmail false
                                                           :waitIncrementSeconds 0
                                                           :webAuthnPolicyAcceptableAaguids []
                                                           :webAuthnPolicyAttestationConveyancePreference ""
                                                           :webAuthnPolicyAuthenticatorAttachment ""
                                                           :webAuthnPolicyAvoidSameAuthenticatorRegister false
                                                           :webAuthnPolicyCreateTimeout 0
                                                           :webAuthnPolicyPasswordlessAcceptableAaguids []
                                                           :webAuthnPolicyPasswordlessAttestationConveyancePreference ""
                                                           :webAuthnPolicyPasswordlessAuthenticatorAttachment ""
                                                           :webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister false
                                                           :webAuthnPolicyPasswordlessCreateTimeout 0
                                                           :webAuthnPolicyPasswordlessRequireResidentKey ""
                                                           :webAuthnPolicyPasswordlessRpEntityName ""
                                                           :webAuthnPolicyPasswordlessRpId ""
                                                           :webAuthnPolicyPasswordlessSignatureAlgorithms []
                                                           :webAuthnPolicyPasswordlessUserVerificationRequirement ""
                                                           :webAuthnPolicyRequireResidentKey ""
                                                           :webAuthnPolicyRpEntityName ""
                                                           :webAuthnPolicyRpId ""
                                                           :webAuthnPolicySignatureAlgorithms []
                                                           :webAuthnPolicyUserVerificationRequirement ""}})
require "http/client"

url = "{{baseUrl}}/"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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}}/"),
    Content = new StringContent("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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}}/");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/"

	payload := strings.NewReader("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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/ HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 9788

{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/")
  .header("content-type", "application/json")
  .body("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accessCodeLifespan: 0,
  accessCodeLifespanLogin: 0,
  accessCodeLifespanUserAction: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  accountTheme: '',
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  adminTheme: '',
  attributes: {},
  authenticationFlows: [
    {
      alias: '',
      authenticationExecutions: [
        {
          authenticator: '',
          authenticatorConfig: '',
          authenticatorFlow: false,
          autheticatorFlow: false,
          flowAlias: '',
          priority: 0,
          requirement: '',
          userSetupAllowed: false
        }
      ],
      builtIn: false,
      description: '',
      id: '',
      providerId: '',
      topLevel: false
    }
  ],
  authenticatorConfig: [
    {
      alias: '',
      config: {},
      id: ''
    }
  ],
  browserFlow: '',
  browserSecurityHeaders: {},
  bruteForceProtected: false,
  clientAuthenticationFlow: '',
  clientScopeMappings: {},
  clientScopes: [
    {
      attributes: {},
      description: '',
      id: '',
      name: '',
      protocol: '',
      protocolMappers: [
        {
          config: {},
          id: '',
          name: '',
          protocol: '',
          protocolMapper: ''
        }
      ]
    }
  ],
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [
                  {
                    displayName: '',
                    iconUri: '',
                    id: '',
                    name: '',
                    policies: [],
                    resources: []
                  }
                ],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [
              {}
            ],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [
          {}
        ],
        scopes: [
          {}
        ]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [
        {}
      ],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  components: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  defaultDefaultClientScopes: [],
  defaultGroups: [],
  defaultLocale: '',
  defaultOptionalClientScopes: [],
  defaultRoles: [],
  defaultSignatureAlgorithm: '',
  directGrantFlow: '',
  displayName: '',
  displayNameHtml: '',
  dockerAuthenticationFlow: '',
  duplicateEmailsAllowed: false,
  editUsernameAllowed: false,
  emailTheme: '',
  enabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  failureFactor: 0,
  federatedUsers: [
    {
      access: {},
      attributes: {},
      clientConsents: [
        {
          clientId: '',
          createdDate: 0,
          grantedClientScopes: [],
          lastUpdatedDate: 0
        }
      ],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  id: '',
  identityProviderMappers: [
    {
      config: {},
      id: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      name: ''
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  internationalizationEnabled: false,
  keycloakVersion: '',
  loginTheme: '',
  loginWithEmailAllowed: false,
  maxDeltaTimeSeconds: 0,
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  notBefore: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespan: 0,
  offlineSessionMaxLifespanEnabled: false,
  otpPolicyAlgorithm: '',
  otpPolicyDigits: 0,
  otpPolicyInitialCounter: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyType: '',
  otpSupportedApplications: [],
  passwordPolicy: '',
  permanentLockout: false,
  protocolMappers: [
    {}
  ],
  quickLoginCheckMilliSeconds: 0,
  realm: '',
  refreshTokenMaxReuse: 0,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  registrationFlow: '',
  rememberMe: false,
  requiredActions: [
    {
      alias: '',
      config: {},
      defaultAction: false,
      enabled: false,
      name: '',
      priority: 0,
      providerId: ''
    }
  ],
  resetCredentialsFlow: '',
  resetPasswordAllowed: false,
  revokeRefreshToken: false,
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {
          client: {},
          realm: []
        },
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  scopeMappings: [
    {
      client: '',
      clientScope: '',
      roles: [],
      self: ''
    }
  ],
  smtpServer: {},
  sslRequired: '',
  ssoSessionIdleTimeout: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  supportedLocales: [],
  userFederationMappers: [
    {
      config: {},
      federationMapperType: '',
      federationProviderDisplayName: '',
      id: '',
      name: ''
    }
  ],
  userFederationProviders: [
    {
      changedSyncPeriod: 0,
      config: {},
      displayName: '',
      fullSyncPeriod: 0,
      id: '',
      lastSync: 0,
      priority: 0,
      providerName: ''
    }
  ],
  userManagedAccessAllowed: false,
  users: [
    {}
  ],
  verifyEmail: false,
  waitIncrementSeconds: 0,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicyRpId: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyUserVerificationRequirement: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/',
  headers: {'content-type': 'application/json'},
  data: {
    accessCodeLifespan: 0,
    accessCodeLifespanLogin: 0,
    accessCodeLifespanUserAction: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    accountTheme: '',
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    adminTheme: '',
    attributes: {},
    authenticationFlows: [
      {
        alias: '',
        authenticationExecutions: [
          {
            authenticator: '',
            authenticatorConfig: '',
            authenticatorFlow: false,
            autheticatorFlow: false,
            flowAlias: '',
            priority: 0,
            requirement: '',
            userSetupAllowed: false
          }
        ],
        builtIn: false,
        description: '',
        id: '',
        providerId: '',
        topLevel: false
      }
    ],
    authenticatorConfig: [{alias: '', config: {}, id: ''}],
    browserFlow: '',
    browserSecurityHeaders: {},
    bruteForceProtected: false,
    clientAuthenticationFlow: '',
    clientScopeMappings: {},
    clientScopes: [
      {
        attributes: {},
        description: '',
        id: '',
        name: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
      }
    ],
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    components: {empty: false, loadFactor: '', threshold: 0},
    defaultDefaultClientScopes: [],
    defaultGroups: [],
    defaultLocale: '',
    defaultOptionalClientScopes: [],
    defaultRoles: [],
    defaultSignatureAlgorithm: '',
    directGrantFlow: '',
    displayName: '',
    displayNameHtml: '',
    dockerAuthenticationFlow: '',
    duplicateEmailsAllowed: false,
    editUsernameAllowed: false,
    emailTheme: '',
    enabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    failureFactor: 0,
    federatedUsers: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    id: '',
    identityProviderMappers: [
      {
        config: {},
        id: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        name: ''
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    internationalizationEnabled: false,
    keycloakVersion: '',
    loginTheme: '',
    loginWithEmailAllowed: false,
    maxDeltaTimeSeconds: 0,
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    notBefore: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespan: 0,
    offlineSessionMaxLifespanEnabled: false,
    otpPolicyAlgorithm: '',
    otpPolicyDigits: 0,
    otpPolicyInitialCounter: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyType: '',
    otpSupportedApplications: [],
    passwordPolicy: '',
    permanentLockout: false,
    protocolMappers: [{}],
    quickLoginCheckMilliSeconds: 0,
    realm: '',
    refreshTokenMaxReuse: 0,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    registrationFlow: '',
    rememberMe: false,
    requiredActions: [
      {
        alias: '',
        config: {},
        defaultAction: false,
        enabled: false,
        name: '',
        priority: 0,
        providerId: ''
      }
    ],
    resetCredentialsFlow: '',
    resetPasswordAllowed: false,
    revokeRefreshToken: false,
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
    smtpServer: {},
    sslRequired: '',
    ssoSessionIdleTimeout: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    supportedLocales: [],
    userFederationMappers: [
      {
        config: {},
        federationMapperType: '',
        federationProviderDisplayName: '',
        id: '',
        name: ''
      }
    ],
    userFederationProviders: [
      {
        changedSyncPeriod: 0,
        config: {},
        displayName: '',
        fullSyncPeriod: 0,
        id: '',
        lastSync: 0,
        priority: 0,
        providerName: ''
      }
    ],
    userManagedAccessAllowed: false,
    users: [{}],
    verifyEmail: false,
    waitIncrementSeconds: 0,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicyRpId: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyUserVerificationRequirement: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accessCodeLifespan":0,"accessCodeLifespanLogin":0,"accessCodeLifespanUserAction":0,"accessTokenLifespan":0,"accessTokenLifespanForImplicitFlow":0,"accountTheme":"","actionTokenGeneratedByAdminLifespan":0,"actionTokenGeneratedByUserLifespan":0,"adminEventsDetailsEnabled":false,"adminEventsEnabled":false,"adminTheme":"","attributes":{},"authenticationFlows":[{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}],"authenticatorConfig":[{"alias":"","config":{},"id":""}],"browserFlow":"","browserSecurityHeaders":{},"bruteForceProtected":false,"clientAuthenticationFlow":"","clientScopeMappings":{},"clientScopes":[{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}],"clientSessionIdleTimeout":0,"clientSessionMaxLifespan":0,"clients":[{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}],"components":{"empty":false,"loadFactor":"","threshold":0},"defaultDefaultClientScopes":[],"defaultGroups":[],"defaultLocale":"","defaultOptionalClientScopes":[],"defaultRoles":[],"defaultSignatureAlgorithm":"","directGrantFlow":"","displayName":"","displayNameHtml":"","dockerAuthenticationFlow":"","duplicateEmailsAllowed":false,"editUsernameAllowed":false,"emailTheme":"","enabled":false,"enabledEventTypes":[],"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"failureFactor":0,"federatedUsers":[{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}],"groups":[{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}],"id":"","identityProviderMappers":[{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}],"identityProviders":[{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}],"internationalizationEnabled":false,"keycloakVersion":"","loginTheme":"","loginWithEmailAllowed":false,"maxDeltaTimeSeconds":0,"maxFailureWaitSeconds":0,"minimumQuickLoginWaitSeconds":0,"notBefore":0,"offlineSessionIdleTimeout":0,"offlineSessionMaxLifespan":0,"offlineSessionMaxLifespanEnabled":false,"otpPolicyAlgorithm":"","otpPolicyDigits":0,"otpPolicyInitialCounter":0,"otpPolicyLookAheadWindow":0,"otpPolicyPeriod":0,"otpPolicyType":"","otpSupportedApplications":[],"passwordPolicy":"","permanentLockout":false,"protocolMappers":[{}],"quickLoginCheckMilliSeconds":0,"realm":"","refreshTokenMaxReuse":0,"registrationAllowed":false,"registrationEmailAsUsername":false,"registrationFlow":"","rememberMe":false,"requiredActions":[{"alias":"","config":{},"defaultAction":false,"enabled":false,"name":"","priority":0,"providerId":""}],"resetCredentialsFlow":"","resetPasswordAllowed":false,"revokeRefreshToken":false,"roles":{"client":{},"realm":[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]},"scopeMappings":[{"client":"","clientScope":"","roles":[],"self":""}],"smtpServer":{},"sslRequired":"","ssoSessionIdleTimeout":0,"ssoSessionIdleTimeoutRememberMe":0,"ssoSessionMaxLifespan":0,"ssoSessionMaxLifespanRememberMe":0,"supportedLocales":[],"userFederationMappers":[{"config":{},"federationMapperType":"","federationProviderDisplayName":"","id":"","name":""}],"userFederationProviders":[{"changedSyncPeriod":0,"config":{},"displayName":"","fullSyncPeriod":0,"id":"","lastSync":0,"priority":0,"providerName":""}],"userManagedAccessAllowed":false,"users":[{}],"verifyEmail":false,"waitIncrementSeconds":0,"webAuthnPolicyAcceptableAaguids":[],"webAuthnPolicyAttestationConveyancePreference":"","webAuthnPolicyAuthenticatorAttachment":"","webAuthnPolicyAvoidSameAuthenticatorRegister":false,"webAuthnPolicyCreateTimeout":0,"webAuthnPolicyPasswordlessAcceptableAaguids":[],"webAuthnPolicyPasswordlessAttestationConveyancePreference":"","webAuthnPolicyPasswordlessAuthenticatorAttachment":"","webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister":false,"webAuthnPolicyPasswordlessCreateTimeout":0,"webAuthnPolicyPasswordlessRequireResidentKey":"","webAuthnPolicyPasswordlessRpEntityName":"","webAuthnPolicyPasswordlessRpId":"","webAuthnPolicyPasswordlessSignatureAlgorithms":[],"webAuthnPolicyPasswordlessUserVerificationRequirement":"","webAuthnPolicyRequireResidentKey":"","webAuthnPolicyRpEntityName":"","webAuthnPolicyRpId":"","webAuthnPolicySignatureAlgorithms":[],"webAuthnPolicyUserVerificationRequirement":""}'
};

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}}/',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accessCodeLifespan": 0,\n  "accessCodeLifespanLogin": 0,\n  "accessCodeLifespanUserAction": 0,\n  "accessTokenLifespan": 0,\n  "accessTokenLifespanForImplicitFlow": 0,\n  "accountTheme": "",\n  "actionTokenGeneratedByAdminLifespan": 0,\n  "actionTokenGeneratedByUserLifespan": 0,\n  "adminEventsDetailsEnabled": false,\n  "adminEventsEnabled": false,\n  "adminTheme": "",\n  "attributes": {},\n  "authenticationFlows": [\n    {\n      "alias": "",\n      "authenticationExecutions": [\n        {\n          "authenticator": "",\n          "authenticatorConfig": "",\n          "authenticatorFlow": false,\n          "autheticatorFlow": false,\n          "flowAlias": "",\n          "priority": 0,\n          "requirement": "",\n          "userSetupAllowed": false\n        }\n      ],\n      "builtIn": false,\n      "description": "",\n      "id": "",\n      "providerId": "",\n      "topLevel": false\n    }\n  ],\n  "authenticatorConfig": [\n    {\n      "alias": "",\n      "config": {},\n      "id": ""\n    }\n  ],\n  "browserFlow": "",\n  "browserSecurityHeaders": {},\n  "bruteForceProtected": false,\n  "clientAuthenticationFlow": "",\n  "clientScopeMappings": {},\n  "clientScopes": [\n    {\n      "attributes": {},\n      "description": "",\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMappers": [\n        {\n          "config": {},\n          "id": "",\n          "name": "",\n          "protocol": "",\n          "protocolMapper": ""\n        }\n      ]\n    }\n  ],\n  "clientSessionIdleTimeout": 0,\n  "clientSessionMaxLifespan": 0,\n  "clients": [\n    {\n      "access": {},\n      "adminUrl": "",\n      "alwaysDisplayInConsole": false,\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "authorizationServicesEnabled": false,\n      "authorizationSettings": {\n        "allowRemoteResourceManagement": false,\n        "clientId": "",\n        "decisionStrategy": "",\n        "id": "",\n        "name": "",\n        "policies": [\n          {\n            "config": {},\n            "decisionStrategy": "",\n            "description": "",\n            "id": "",\n            "logic": "",\n            "name": "",\n            "owner": "",\n            "policies": [],\n            "resources": [],\n            "resourcesData": [\n              {\n                "attributes": {},\n                "displayName": "",\n                "icon_uri": "",\n                "id": "",\n                "name": "",\n                "ownerManagedAccess": false,\n                "scopes": [\n                  {\n                    "displayName": "",\n                    "iconUri": "",\n                    "id": "",\n                    "name": "",\n                    "policies": [],\n                    "resources": []\n                  }\n                ],\n                "type": "",\n                "uris": []\n              }\n            ],\n            "scopes": [],\n            "scopesData": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "policyEnforcementMode": "",\n        "resources": [\n          {}\n        ],\n        "scopes": [\n          {}\n        ]\n      },\n      "baseUrl": "",\n      "bearerOnly": false,\n      "clientAuthenticatorType": "",\n      "clientId": "",\n      "consentRequired": false,\n      "defaultClientScopes": [],\n      "defaultRoles": [],\n      "description": "",\n      "directAccessGrantsEnabled": false,\n      "enabled": false,\n      "frontchannelLogout": false,\n      "fullScopeAllowed": false,\n      "id": "",\n      "implicitFlowEnabled": false,\n      "name": "",\n      "nodeReRegistrationTimeout": 0,\n      "notBefore": 0,\n      "optionalClientScopes": [],\n      "origin": "",\n      "protocol": "",\n      "protocolMappers": [\n        {}\n      ],\n      "publicClient": false,\n      "redirectUris": [],\n      "registeredNodes": {},\n      "registrationAccessToken": "",\n      "rootUrl": "",\n      "secret": "",\n      "serviceAccountsEnabled": false,\n      "standardFlowEnabled": false,\n      "surrogateAuthRequired": false,\n      "webOrigins": []\n    }\n  ],\n  "components": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "defaultDefaultClientScopes": [],\n  "defaultGroups": [],\n  "defaultLocale": "",\n  "defaultOptionalClientScopes": [],\n  "defaultRoles": [],\n  "defaultSignatureAlgorithm": "",\n  "directGrantFlow": "",\n  "displayName": "",\n  "displayNameHtml": "",\n  "dockerAuthenticationFlow": "",\n  "duplicateEmailsAllowed": false,\n  "editUsernameAllowed": false,\n  "emailTheme": "",\n  "enabled": false,\n  "enabledEventTypes": [],\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "failureFactor": 0,\n  "federatedUsers": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "createdDate": 0,\n          "grantedClientScopes": [],\n          "lastUpdatedDate": 0\n        }\n      ],\n      "clientRoles": {},\n      "createdTimestamp": 0,\n      "credentials": [\n        {\n          "createdDate": 0,\n          "credentialData": "",\n          "id": "",\n          "priority": 0,\n          "secretData": "",\n          "temporary": false,\n          "type": "",\n          "userLabel": "",\n          "value": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "email": "",\n      "emailVerified": false,\n      "enabled": false,\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "federationLink": "",\n      "firstName": "",\n      "groups": [],\n      "id": "",\n      "lastName": "",\n      "notBefore": 0,\n      "origin": "",\n      "realmRoles": [],\n      "requiredActions": [],\n      "self": "",\n      "serviceAccountClientId": "",\n      "username": ""\n    }\n  ],\n  "groups": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientRoles": {},\n      "id": "",\n      "name": "",\n      "path": "",\n      "realmRoles": [],\n      "subGroups": []\n    }\n  ],\n  "id": "",\n  "identityProviderMappers": [\n    {\n      "config": {},\n      "id": "",\n      "identityProviderAlias": "",\n      "identityProviderMapper": "",\n      "name": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "addReadTokenRoleOnCreate": false,\n      "alias": "",\n      "config": {},\n      "displayName": "",\n      "enabled": false,\n      "firstBrokerLoginFlowAlias": "",\n      "internalId": "",\n      "linkOnly": false,\n      "postBrokerLoginFlowAlias": "",\n      "providerId": "",\n      "storeToken": false,\n      "trustEmail": false\n    }\n  ],\n  "internationalizationEnabled": false,\n  "keycloakVersion": "",\n  "loginTheme": "",\n  "loginWithEmailAllowed": false,\n  "maxDeltaTimeSeconds": 0,\n  "maxFailureWaitSeconds": 0,\n  "minimumQuickLoginWaitSeconds": 0,\n  "notBefore": 0,\n  "offlineSessionIdleTimeout": 0,\n  "offlineSessionMaxLifespan": 0,\n  "offlineSessionMaxLifespanEnabled": false,\n  "otpPolicyAlgorithm": "",\n  "otpPolicyDigits": 0,\n  "otpPolicyInitialCounter": 0,\n  "otpPolicyLookAheadWindow": 0,\n  "otpPolicyPeriod": 0,\n  "otpPolicyType": "",\n  "otpSupportedApplications": [],\n  "passwordPolicy": "",\n  "permanentLockout": false,\n  "protocolMappers": [\n    {}\n  ],\n  "quickLoginCheckMilliSeconds": 0,\n  "realm": "",\n  "refreshTokenMaxReuse": 0,\n  "registrationAllowed": false,\n  "registrationEmailAsUsername": false,\n  "registrationFlow": "",\n  "rememberMe": false,\n  "requiredActions": [\n    {\n      "alias": "",\n      "config": {},\n      "defaultAction": false,\n      "enabled": false,\n      "name": "",\n      "priority": 0,\n      "providerId": ""\n    }\n  ],\n  "resetCredentialsFlow": "",\n  "resetPasswordAllowed": false,\n  "revokeRefreshToken": false,\n  "roles": {\n    "client": {},\n    "realm": [\n      {\n        "attributes": {},\n        "clientRole": false,\n        "composite": false,\n        "composites": {\n          "client": {},\n          "realm": []\n        },\n        "containerId": "",\n        "description": "",\n        "id": "",\n        "name": ""\n      }\n    ]\n  },\n  "scopeMappings": [\n    {\n      "client": "",\n      "clientScope": "",\n      "roles": [],\n      "self": ""\n    }\n  ],\n  "smtpServer": {},\n  "sslRequired": "",\n  "ssoSessionIdleTimeout": 0,\n  "ssoSessionIdleTimeoutRememberMe": 0,\n  "ssoSessionMaxLifespan": 0,\n  "ssoSessionMaxLifespanRememberMe": 0,\n  "supportedLocales": [],\n  "userFederationMappers": [\n    {\n      "config": {},\n      "federationMapperType": "",\n      "federationProviderDisplayName": "",\n      "id": "",\n      "name": ""\n    }\n  ],\n  "userFederationProviders": [\n    {\n      "changedSyncPeriod": 0,\n      "config": {},\n      "displayName": "",\n      "fullSyncPeriod": 0,\n      "id": "",\n      "lastSync": 0,\n      "priority": 0,\n      "providerName": ""\n    }\n  ],\n  "userManagedAccessAllowed": false,\n  "users": [\n    {}\n  ],\n  "verifyEmail": false,\n  "waitIncrementSeconds": 0,\n  "webAuthnPolicyAcceptableAaguids": [],\n  "webAuthnPolicyAttestationConveyancePreference": "",\n  "webAuthnPolicyAuthenticatorAttachment": "",\n  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessAcceptableAaguids": [],\n  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",\n  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",\n  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyPasswordlessCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessRequireResidentKey": "",\n  "webAuthnPolicyPasswordlessRpEntityName": "",\n  "webAuthnPolicyPasswordlessRpId": "",\n  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],\n  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",\n  "webAuthnPolicyRequireResidentKey": "",\n  "webAuthnPolicyRpEntityName": "",\n  "webAuthnPolicyRpId": "",\n  "webAuthnPolicySignatureAlgorithms": [],\n  "webAuthnPolicyUserVerificationRequirement": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/")
  .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/',
  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({
  accessCodeLifespan: 0,
  accessCodeLifespanLogin: 0,
  accessCodeLifespanUserAction: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  accountTheme: '',
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  adminTheme: '',
  attributes: {},
  authenticationFlows: [
    {
      alias: '',
      authenticationExecutions: [
        {
          authenticator: '',
          authenticatorConfig: '',
          authenticatorFlow: false,
          autheticatorFlow: false,
          flowAlias: '',
          priority: 0,
          requirement: '',
          userSetupAllowed: false
        }
      ],
      builtIn: false,
      description: '',
      id: '',
      providerId: '',
      topLevel: false
    }
  ],
  authenticatorConfig: [{alias: '', config: {}, id: ''}],
  browserFlow: '',
  browserSecurityHeaders: {},
  bruteForceProtected: false,
  clientAuthenticationFlow: '',
  clientScopeMappings: {},
  clientScopes: [
    {
      attributes: {},
      description: '',
      id: '',
      name: '',
      protocol: '',
      protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
    }
  ],
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [{}],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [{}],
        scopes: [{}]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [{}],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  components: {empty: false, loadFactor: '', threshold: 0},
  defaultDefaultClientScopes: [],
  defaultGroups: [],
  defaultLocale: '',
  defaultOptionalClientScopes: [],
  defaultRoles: [],
  defaultSignatureAlgorithm: '',
  directGrantFlow: '',
  displayName: '',
  displayNameHtml: '',
  dockerAuthenticationFlow: '',
  duplicateEmailsAllowed: false,
  editUsernameAllowed: false,
  emailTheme: '',
  enabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  failureFactor: 0,
  federatedUsers: [
    {
      access: {},
      attributes: {},
      clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  id: '',
  identityProviderMappers: [
    {
      config: {},
      id: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      name: ''
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  internationalizationEnabled: false,
  keycloakVersion: '',
  loginTheme: '',
  loginWithEmailAllowed: false,
  maxDeltaTimeSeconds: 0,
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  notBefore: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespan: 0,
  offlineSessionMaxLifespanEnabled: false,
  otpPolicyAlgorithm: '',
  otpPolicyDigits: 0,
  otpPolicyInitialCounter: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyType: '',
  otpSupportedApplications: [],
  passwordPolicy: '',
  permanentLockout: false,
  protocolMappers: [{}],
  quickLoginCheckMilliSeconds: 0,
  realm: '',
  refreshTokenMaxReuse: 0,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  registrationFlow: '',
  rememberMe: false,
  requiredActions: [
    {
      alias: '',
      config: {},
      defaultAction: false,
      enabled: false,
      name: '',
      priority: 0,
      providerId: ''
    }
  ],
  resetCredentialsFlow: '',
  resetPasswordAllowed: false,
  revokeRefreshToken: false,
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {client: {}, realm: []},
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
  smtpServer: {},
  sslRequired: '',
  ssoSessionIdleTimeout: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  supportedLocales: [],
  userFederationMappers: [
    {
      config: {},
      federationMapperType: '',
      federationProviderDisplayName: '',
      id: '',
      name: ''
    }
  ],
  userFederationProviders: [
    {
      changedSyncPeriod: 0,
      config: {},
      displayName: '',
      fullSyncPeriod: 0,
      id: '',
      lastSync: 0,
      priority: 0,
      providerName: ''
    }
  ],
  userManagedAccessAllowed: false,
  users: [{}],
  verifyEmail: false,
  waitIncrementSeconds: 0,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicyRpId: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyUserVerificationRequirement: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/',
  headers: {'content-type': 'application/json'},
  body: {
    accessCodeLifespan: 0,
    accessCodeLifespanLogin: 0,
    accessCodeLifespanUserAction: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    accountTheme: '',
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    adminTheme: '',
    attributes: {},
    authenticationFlows: [
      {
        alias: '',
        authenticationExecutions: [
          {
            authenticator: '',
            authenticatorConfig: '',
            authenticatorFlow: false,
            autheticatorFlow: false,
            flowAlias: '',
            priority: 0,
            requirement: '',
            userSetupAllowed: false
          }
        ],
        builtIn: false,
        description: '',
        id: '',
        providerId: '',
        topLevel: false
      }
    ],
    authenticatorConfig: [{alias: '', config: {}, id: ''}],
    browserFlow: '',
    browserSecurityHeaders: {},
    bruteForceProtected: false,
    clientAuthenticationFlow: '',
    clientScopeMappings: {},
    clientScopes: [
      {
        attributes: {},
        description: '',
        id: '',
        name: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
      }
    ],
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    components: {empty: false, loadFactor: '', threshold: 0},
    defaultDefaultClientScopes: [],
    defaultGroups: [],
    defaultLocale: '',
    defaultOptionalClientScopes: [],
    defaultRoles: [],
    defaultSignatureAlgorithm: '',
    directGrantFlow: '',
    displayName: '',
    displayNameHtml: '',
    dockerAuthenticationFlow: '',
    duplicateEmailsAllowed: false,
    editUsernameAllowed: false,
    emailTheme: '',
    enabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    failureFactor: 0,
    federatedUsers: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    id: '',
    identityProviderMappers: [
      {
        config: {},
        id: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        name: ''
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    internationalizationEnabled: false,
    keycloakVersion: '',
    loginTheme: '',
    loginWithEmailAllowed: false,
    maxDeltaTimeSeconds: 0,
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    notBefore: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespan: 0,
    offlineSessionMaxLifespanEnabled: false,
    otpPolicyAlgorithm: '',
    otpPolicyDigits: 0,
    otpPolicyInitialCounter: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyType: '',
    otpSupportedApplications: [],
    passwordPolicy: '',
    permanentLockout: false,
    protocolMappers: [{}],
    quickLoginCheckMilliSeconds: 0,
    realm: '',
    refreshTokenMaxReuse: 0,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    registrationFlow: '',
    rememberMe: false,
    requiredActions: [
      {
        alias: '',
        config: {},
        defaultAction: false,
        enabled: false,
        name: '',
        priority: 0,
        providerId: ''
      }
    ],
    resetCredentialsFlow: '',
    resetPasswordAllowed: false,
    revokeRefreshToken: false,
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
    smtpServer: {},
    sslRequired: '',
    ssoSessionIdleTimeout: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    supportedLocales: [],
    userFederationMappers: [
      {
        config: {},
        federationMapperType: '',
        federationProviderDisplayName: '',
        id: '',
        name: ''
      }
    ],
    userFederationProviders: [
      {
        changedSyncPeriod: 0,
        config: {},
        displayName: '',
        fullSyncPeriod: 0,
        id: '',
        lastSync: 0,
        priority: 0,
        providerName: ''
      }
    ],
    userManagedAccessAllowed: false,
    users: [{}],
    verifyEmail: false,
    waitIncrementSeconds: 0,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicyRpId: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyUserVerificationRequirement: ''
  },
  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}}/');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accessCodeLifespan: 0,
  accessCodeLifespanLogin: 0,
  accessCodeLifespanUserAction: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  accountTheme: '',
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  adminTheme: '',
  attributes: {},
  authenticationFlows: [
    {
      alias: '',
      authenticationExecutions: [
        {
          authenticator: '',
          authenticatorConfig: '',
          authenticatorFlow: false,
          autheticatorFlow: false,
          flowAlias: '',
          priority: 0,
          requirement: '',
          userSetupAllowed: false
        }
      ],
      builtIn: false,
      description: '',
      id: '',
      providerId: '',
      topLevel: false
    }
  ],
  authenticatorConfig: [
    {
      alias: '',
      config: {},
      id: ''
    }
  ],
  browserFlow: '',
  browserSecurityHeaders: {},
  bruteForceProtected: false,
  clientAuthenticationFlow: '',
  clientScopeMappings: {},
  clientScopes: [
    {
      attributes: {},
      description: '',
      id: '',
      name: '',
      protocol: '',
      protocolMappers: [
        {
          config: {},
          id: '',
          name: '',
          protocol: '',
          protocolMapper: ''
        }
      ]
    }
  ],
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [
                  {
                    displayName: '',
                    iconUri: '',
                    id: '',
                    name: '',
                    policies: [],
                    resources: []
                  }
                ],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [
              {}
            ],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [
          {}
        ],
        scopes: [
          {}
        ]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [
        {}
      ],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  components: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  defaultDefaultClientScopes: [],
  defaultGroups: [],
  defaultLocale: '',
  defaultOptionalClientScopes: [],
  defaultRoles: [],
  defaultSignatureAlgorithm: '',
  directGrantFlow: '',
  displayName: '',
  displayNameHtml: '',
  dockerAuthenticationFlow: '',
  duplicateEmailsAllowed: false,
  editUsernameAllowed: false,
  emailTheme: '',
  enabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  failureFactor: 0,
  federatedUsers: [
    {
      access: {},
      attributes: {},
      clientConsents: [
        {
          clientId: '',
          createdDate: 0,
          grantedClientScopes: [],
          lastUpdatedDate: 0
        }
      ],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  id: '',
  identityProviderMappers: [
    {
      config: {},
      id: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      name: ''
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  internationalizationEnabled: false,
  keycloakVersion: '',
  loginTheme: '',
  loginWithEmailAllowed: false,
  maxDeltaTimeSeconds: 0,
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  notBefore: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespan: 0,
  offlineSessionMaxLifespanEnabled: false,
  otpPolicyAlgorithm: '',
  otpPolicyDigits: 0,
  otpPolicyInitialCounter: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyType: '',
  otpSupportedApplications: [],
  passwordPolicy: '',
  permanentLockout: false,
  protocolMappers: [
    {}
  ],
  quickLoginCheckMilliSeconds: 0,
  realm: '',
  refreshTokenMaxReuse: 0,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  registrationFlow: '',
  rememberMe: false,
  requiredActions: [
    {
      alias: '',
      config: {},
      defaultAction: false,
      enabled: false,
      name: '',
      priority: 0,
      providerId: ''
    }
  ],
  resetCredentialsFlow: '',
  resetPasswordAllowed: false,
  revokeRefreshToken: false,
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {
          client: {},
          realm: []
        },
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  scopeMappings: [
    {
      client: '',
      clientScope: '',
      roles: [],
      self: ''
    }
  ],
  smtpServer: {},
  sslRequired: '',
  ssoSessionIdleTimeout: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  supportedLocales: [],
  userFederationMappers: [
    {
      config: {},
      federationMapperType: '',
      federationProviderDisplayName: '',
      id: '',
      name: ''
    }
  ],
  userFederationProviders: [
    {
      changedSyncPeriod: 0,
      config: {},
      displayName: '',
      fullSyncPeriod: 0,
      id: '',
      lastSync: 0,
      priority: 0,
      providerName: ''
    }
  ],
  userManagedAccessAllowed: false,
  users: [
    {}
  ],
  verifyEmail: false,
  waitIncrementSeconds: 0,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicyRpId: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyUserVerificationRequirement: ''
});

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}}/',
  headers: {'content-type': 'application/json'},
  data: {
    accessCodeLifespan: 0,
    accessCodeLifespanLogin: 0,
    accessCodeLifespanUserAction: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    accountTheme: '',
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    adminTheme: '',
    attributes: {},
    authenticationFlows: [
      {
        alias: '',
        authenticationExecutions: [
          {
            authenticator: '',
            authenticatorConfig: '',
            authenticatorFlow: false,
            autheticatorFlow: false,
            flowAlias: '',
            priority: 0,
            requirement: '',
            userSetupAllowed: false
          }
        ],
        builtIn: false,
        description: '',
        id: '',
        providerId: '',
        topLevel: false
      }
    ],
    authenticatorConfig: [{alias: '', config: {}, id: ''}],
    browserFlow: '',
    browserSecurityHeaders: {},
    bruteForceProtected: false,
    clientAuthenticationFlow: '',
    clientScopeMappings: {},
    clientScopes: [
      {
        attributes: {},
        description: '',
        id: '',
        name: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
      }
    ],
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    components: {empty: false, loadFactor: '', threshold: 0},
    defaultDefaultClientScopes: [],
    defaultGroups: [],
    defaultLocale: '',
    defaultOptionalClientScopes: [],
    defaultRoles: [],
    defaultSignatureAlgorithm: '',
    directGrantFlow: '',
    displayName: '',
    displayNameHtml: '',
    dockerAuthenticationFlow: '',
    duplicateEmailsAllowed: false,
    editUsernameAllowed: false,
    emailTheme: '',
    enabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    failureFactor: 0,
    federatedUsers: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    id: '',
    identityProviderMappers: [
      {
        config: {},
        id: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        name: ''
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    internationalizationEnabled: false,
    keycloakVersion: '',
    loginTheme: '',
    loginWithEmailAllowed: false,
    maxDeltaTimeSeconds: 0,
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    notBefore: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespan: 0,
    offlineSessionMaxLifespanEnabled: false,
    otpPolicyAlgorithm: '',
    otpPolicyDigits: 0,
    otpPolicyInitialCounter: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyType: '',
    otpSupportedApplications: [],
    passwordPolicy: '',
    permanentLockout: false,
    protocolMappers: [{}],
    quickLoginCheckMilliSeconds: 0,
    realm: '',
    refreshTokenMaxReuse: 0,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    registrationFlow: '',
    rememberMe: false,
    requiredActions: [
      {
        alias: '',
        config: {},
        defaultAction: false,
        enabled: false,
        name: '',
        priority: 0,
        providerId: ''
      }
    ],
    resetCredentialsFlow: '',
    resetPasswordAllowed: false,
    revokeRefreshToken: false,
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
    smtpServer: {},
    sslRequired: '',
    ssoSessionIdleTimeout: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    supportedLocales: [],
    userFederationMappers: [
      {
        config: {},
        federationMapperType: '',
        federationProviderDisplayName: '',
        id: '',
        name: ''
      }
    ],
    userFederationProviders: [
      {
        changedSyncPeriod: 0,
        config: {},
        displayName: '',
        fullSyncPeriod: 0,
        id: '',
        lastSync: 0,
        priority: 0,
        providerName: ''
      }
    ],
    userManagedAccessAllowed: false,
    users: [{}],
    verifyEmail: false,
    waitIncrementSeconds: 0,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicyRpId: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyUserVerificationRequirement: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accessCodeLifespan":0,"accessCodeLifespanLogin":0,"accessCodeLifespanUserAction":0,"accessTokenLifespan":0,"accessTokenLifespanForImplicitFlow":0,"accountTheme":"","actionTokenGeneratedByAdminLifespan":0,"actionTokenGeneratedByUserLifespan":0,"adminEventsDetailsEnabled":false,"adminEventsEnabled":false,"adminTheme":"","attributes":{},"authenticationFlows":[{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}],"authenticatorConfig":[{"alias":"","config":{},"id":""}],"browserFlow":"","browserSecurityHeaders":{},"bruteForceProtected":false,"clientAuthenticationFlow":"","clientScopeMappings":{},"clientScopes":[{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}],"clientSessionIdleTimeout":0,"clientSessionMaxLifespan":0,"clients":[{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}],"components":{"empty":false,"loadFactor":"","threshold":0},"defaultDefaultClientScopes":[],"defaultGroups":[],"defaultLocale":"","defaultOptionalClientScopes":[],"defaultRoles":[],"defaultSignatureAlgorithm":"","directGrantFlow":"","displayName":"","displayNameHtml":"","dockerAuthenticationFlow":"","duplicateEmailsAllowed":false,"editUsernameAllowed":false,"emailTheme":"","enabled":false,"enabledEventTypes":[],"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"failureFactor":0,"federatedUsers":[{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}],"groups":[{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}],"id":"","identityProviderMappers":[{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}],"identityProviders":[{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}],"internationalizationEnabled":false,"keycloakVersion":"","loginTheme":"","loginWithEmailAllowed":false,"maxDeltaTimeSeconds":0,"maxFailureWaitSeconds":0,"minimumQuickLoginWaitSeconds":0,"notBefore":0,"offlineSessionIdleTimeout":0,"offlineSessionMaxLifespan":0,"offlineSessionMaxLifespanEnabled":false,"otpPolicyAlgorithm":"","otpPolicyDigits":0,"otpPolicyInitialCounter":0,"otpPolicyLookAheadWindow":0,"otpPolicyPeriod":0,"otpPolicyType":"","otpSupportedApplications":[],"passwordPolicy":"","permanentLockout":false,"protocolMappers":[{}],"quickLoginCheckMilliSeconds":0,"realm":"","refreshTokenMaxReuse":0,"registrationAllowed":false,"registrationEmailAsUsername":false,"registrationFlow":"","rememberMe":false,"requiredActions":[{"alias":"","config":{},"defaultAction":false,"enabled":false,"name":"","priority":0,"providerId":""}],"resetCredentialsFlow":"","resetPasswordAllowed":false,"revokeRefreshToken":false,"roles":{"client":{},"realm":[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]},"scopeMappings":[{"client":"","clientScope":"","roles":[],"self":""}],"smtpServer":{},"sslRequired":"","ssoSessionIdleTimeout":0,"ssoSessionIdleTimeoutRememberMe":0,"ssoSessionMaxLifespan":0,"ssoSessionMaxLifespanRememberMe":0,"supportedLocales":[],"userFederationMappers":[{"config":{},"federationMapperType":"","federationProviderDisplayName":"","id":"","name":""}],"userFederationProviders":[{"changedSyncPeriod":0,"config":{},"displayName":"","fullSyncPeriod":0,"id":"","lastSync":0,"priority":0,"providerName":""}],"userManagedAccessAllowed":false,"users":[{}],"verifyEmail":false,"waitIncrementSeconds":0,"webAuthnPolicyAcceptableAaguids":[],"webAuthnPolicyAttestationConveyancePreference":"","webAuthnPolicyAuthenticatorAttachment":"","webAuthnPolicyAvoidSameAuthenticatorRegister":false,"webAuthnPolicyCreateTimeout":0,"webAuthnPolicyPasswordlessAcceptableAaguids":[],"webAuthnPolicyPasswordlessAttestationConveyancePreference":"","webAuthnPolicyPasswordlessAuthenticatorAttachment":"","webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister":false,"webAuthnPolicyPasswordlessCreateTimeout":0,"webAuthnPolicyPasswordlessRequireResidentKey":"","webAuthnPolicyPasswordlessRpEntityName":"","webAuthnPolicyPasswordlessRpId":"","webAuthnPolicyPasswordlessSignatureAlgorithms":[],"webAuthnPolicyPasswordlessUserVerificationRequirement":"","webAuthnPolicyRequireResidentKey":"","webAuthnPolicyRpEntityName":"","webAuthnPolicyRpId":"","webAuthnPolicySignatureAlgorithms":[],"webAuthnPolicyUserVerificationRequirement":""}'
};

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 = @{ @"accessCodeLifespan": @0,
                              @"accessCodeLifespanLogin": @0,
                              @"accessCodeLifespanUserAction": @0,
                              @"accessTokenLifespan": @0,
                              @"accessTokenLifespanForImplicitFlow": @0,
                              @"accountTheme": @"",
                              @"actionTokenGeneratedByAdminLifespan": @0,
                              @"actionTokenGeneratedByUserLifespan": @0,
                              @"adminEventsDetailsEnabled": @NO,
                              @"adminEventsEnabled": @NO,
                              @"adminTheme": @"",
                              @"attributes": @{  },
                              @"authenticationFlows": @[ @{ @"alias": @"", @"authenticationExecutions": @[ @{ @"authenticator": @"", @"authenticatorConfig": @"", @"authenticatorFlow": @NO, @"autheticatorFlow": @NO, @"flowAlias": @"", @"priority": @0, @"requirement": @"", @"userSetupAllowed": @NO } ], @"builtIn": @NO, @"description": @"", @"id": @"", @"providerId": @"", @"topLevel": @NO } ],
                              @"authenticatorConfig": @[ @{ @"alias": @"", @"config": @{  }, @"id": @"" } ],
                              @"browserFlow": @"",
                              @"browserSecurityHeaders": @{  },
                              @"bruteForceProtected": @NO,
                              @"clientAuthenticationFlow": @"",
                              @"clientScopeMappings": @{  },
                              @"clientScopes": @[ @{ @"attributes": @{  }, @"description": @"", @"id": @"", @"name": @"", @"protocol": @"", @"protocolMappers": @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ] } ],
                              @"clientSessionIdleTimeout": @0,
                              @"clientSessionMaxLifespan": @0,
                              @"clients": @[ @{ @"access": @{  }, @"adminUrl": @"", @"alwaysDisplayInConsole": @NO, @"attributes": @{  }, @"authenticationFlowBindingOverrides": @{  }, @"authorizationServicesEnabled": @NO, @"authorizationSettings": @{ @"allowRemoteResourceManagement": @NO, @"clientId": @"", @"decisionStrategy": @"", @"id": @"", @"name": @"", @"policies": @[ @{ @"config": @{  }, @"decisionStrategy": @"", @"description": @"", @"id": @"", @"logic": @"", @"name": @"", @"owner": @"", @"policies": @[  ], @"resources": @[  ], @"resourcesData": @[ @{ @"attributes": @{  }, @"displayName": @"", @"icon_uri": @"", @"id": @"", @"name": @"", @"ownerManagedAccess": @NO, @"scopes": @[ @{ @"displayName": @"", @"iconUri": @"", @"id": @"", @"name": @"", @"policies": @[  ], @"resources": @[  ] } ], @"type": @"", @"uris": @[  ] } ], @"scopes": @[  ], @"scopesData": @[ @{  } ], @"type": @"" } ], @"policyEnforcementMode": @"", @"resources": @[ @{  } ], @"scopes": @[ @{  } ] }, @"baseUrl": @"", @"bearerOnly": @NO, @"clientAuthenticatorType": @"", @"clientId": @"", @"consentRequired": @NO, @"defaultClientScopes": @[  ], @"defaultRoles": @[  ], @"description": @"", @"directAccessGrantsEnabled": @NO, @"enabled": @NO, @"frontchannelLogout": @NO, @"fullScopeAllowed": @NO, @"id": @"", @"implicitFlowEnabled": @NO, @"name": @"", @"nodeReRegistrationTimeout": @0, @"notBefore": @0, @"optionalClientScopes": @[  ], @"origin": @"", @"protocol": @"", @"protocolMappers": @[ @{  } ], @"publicClient": @NO, @"redirectUris": @[  ], @"registeredNodes": @{  }, @"registrationAccessToken": @"", @"rootUrl": @"", @"secret": @"", @"serviceAccountsEnabled": @NO, @"standardFlowEnabled": @NO, @"surrogateAuthRequired": @NO, @"webOrigins": @[  ] } ],
                              @"components": @{ @"empty": @NO, @"loadFactor": @"", @"threshold": @0 },
                              @"defaultDefaultClientScopes": @[  ],
                              @"defaultGroups": @[  ],
                              @"defaultLocale": @"",
                              @"defaultOptionalClientScopes": @[  ],
                              @"defaultRoles": @[  ],
                              @"defaultSignatureAlgorithm": @"",
                              @"directGrantFlow": @"",
                              @"displayName": @"",
                              @"displayNameHtml": @"",
                              @"dockerAuthenticationFlow": @"",
                              @"duplicateEmailsAllowed": @NO,
                              @"editUsernameAllowed": @NO,
                              @"emailTheme": @"",
                              @"enabled": @NO,
                              @"enabledEventTypes": @[  ],
                              @"eventsEnabled": @NO,
                              @"eventsExpiration": @0,
                              @"eventsListeners": @[  ],
                              @"failureFactor": @0,
                              @"federatedUsers": @[ @{ @"access": @{  }, @"attributes": @{  }, @"clientConsents": @[ @{ @"clientId": @"", @"createdDate": @0, @"grantedClientScopes": @[  ], @"lastUpdatedDate": @0 } ], @"clientRoles": @{  }, @"createdTimestamp": @0, @"credentials": @[ @{ @"createdDate": @0, @"credentialData": @"", @"id": @"", @"priority": @0, @"secretData": @"", @"temporary": @NO, @"type": @"", @"userLabel": @"", @"value": @"" } ], @"disableableCredentialTypes": @[  ], @"email": @"", @"emailVerified": @NO, @"enabled": @NO, @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ], @"federationLink": @"", @"firstName": @"", @"groups": @[  ], @"id": @"", @"lastName": @"", @"notBefore": @0, @"origin": @"", @"realmRoles": @[  ], @"requiredActions": @[  ], @"self": @"", @"serviceAccountClientId": @"", @"username": @"" } ],
                              @"groups": @[ @{ @"access": @{  }, @"attributes": @{  }, @"clientRoles": @{  }, @"id": @"", @"name": @"", @"path": @"", @"realmRoles": @[  ], @"subGroups": @[  ] } ],
                              @"id": @"",
                              @"identityProviderMappers": @[ @{ @"config": @{  }, @"id": @"", @"identityProviderAlias": @"", @"identityProviderMapper": @"", @"name": @"" } ],
                              @"identityProviders": @[ @{ @"addReadTokenRoleOnCreate": @NO, @"alias": @"", @"config": @{  }, @"displayName": @"", @"enabled": @NO, @"firstBrokerLoginFlowAlias": @"", @"internalId": @"", @"linkOnly": @NO, @"postBrokerLoginFlowAlias": @"", @"providerId": @"", @"storeToken": @NO, @"trustEmail": @NO } ],
                              @"internationalizationEnabled": @NO,
                              @"keycloakVersion": @"",
                              @"loginTheme": @"",
                              @"loginWithEmailAllowed": @NO,
                              @"maxDeltaTimeSeconds": @0,
                              @"maxFailureWaitSeconds": @0,
                              @"minimumQuickLoginWaitSeconds": @0,
                              @"notBefore": @0,
                              @"offlineSessionIdleTimeout": @0,
                              @"offlineSessionMaxLifespan": @0,
                              @"offlineSessionMaxLifespanEnabled": @NO,
                              @"otpPolicyAlgorithm": @"",
                              @"otpPolicyDigits": @0,
                              @"otpPolicyInitialCounter": @0,
                              @"otpPolicyLookAheadWindow": @0,
                              @"otpPolicyPeriod": @0,
                              @"otpPolicyType": @"",
                              @"otpSupportedApplications": @[  ],
                              @"passwordPolicy": @"",
                              @"permanentLockout": @NO,
                              @"protocolMappers": @[ @{  } ],
                              @"quickLoginCheckMilliSeconds": @0,
                              @"realm": @"",
                              @"refreshTokenMaxReuse": @0,
                              @"registrationAllowed": @NO,
                              @"registrationEmailAsUsername": @NO,
                              @"registrationFlow": @"",
                              @"rememberMe": @NO,
                              @"requiredActions": @[ @{ @"alias": @"", @"config": @{  }, @"defaultAction": @NO, @"enabled": @NO, @"name": @"", @"priority": @0, @"providerId": @"" } ],
                              @"resetCredentialsFlow": @"",
                              @"resetPasswordAllowed": @NO,
                              @"revokeRefreshToken": @NO,
                              @"roles": @{ @"client": @{  }, @"realm": @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ] },
                              @"scopeMappings": @[ @{ @"client": @"", @"clientScope": @"", @"roles": @[  ], @"self": @"" } ],
                              @"smtpServer": @{  },
                              @"sslRequired": @"",
                              @"ssoSessionIdleTimeout": @0,
                              @"ssoSessionIdleTimeoutRememberMe": @0,
                              @"ssoSessionMaxLifespan": @0,
                              @"ssoSessionMaxLifespanRememberMe": @0,
                              @"supportedLocales": @[  ],
                              @"userFederationMappers": @[ @{ @"config": @{  }, @"federationMapperType": @"", @"federationProviderDisplayName": @"", @"id": @"", @"name": @"" } ],
                              @"userFederationProviders": @[ @{ @"changedSyncPeriod": @0, @"config": @{  }, @"displayName": @"", @"fullSyncPeriod": @0, @"id": @"", @"lastSync": @0, @"priority": @0, @"providerName": @"" } ],
                              @"userManagedAccessAllowed": @NO,
                              @"users": @[ @{  } ],
                              @"verifyEmail": @NO,
                              @"waitIncrementSeconds": @0,
                              @"webAuthnPolicyAcceptableAaguids": @[  ],
                              @"webAuthnPolicyAttestationConveyancePreference": @"",
                              @"webAuthnPolicyAuthenticatorAttachment": @"",
                              @"webAuthnPolicyAvoidSameAuthenticatorRegister": @NO,
                              @"webAuthnPolicyCreateTimeout": @0,
                              @"webAuthnPolicyPasswordlessAcceptableAaguids": @[  ],
                              @"webAuthnPolicyPasswordlessAttestationConveyancePreference": @"",
                              @"webAuthnPolicyPasswordlessAuthenticatorAttachment": @"",
                              @"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": @NO,
                              @"webAuthnPolicyPasswordlessCreateTimeout": @0,
                              @"webAuthnPolicyPasswordlessRequireResidentKey": @"",
                              @"webAuthnPolicyPasswordlessRpEntityName": @"",
                              @"webAuthnPolicyPasswordlessRpId": @"",
                              @"webAuthnPolicyPasswordlessSignatureAlgorithms": @[  ],
                              @"webAuthnPolicyPasswordlessUserVerificationRequirement": @"",
                              @"webAuthnPolicyRequireResidentKey": @"",
                              @"webAuthnPolicyRpEntityName": @"",
                              @"webAuthnPolicyRpId": @"",
                              @"webAuthnPolicySignatureAlgorithms": @[  ],
                              @"webAuthnPolicyUserVerificationRequirement": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/"]
                                                       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}}/" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/",
  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([
    'accessCodeLifespan' => 0,
    'accessCodeLifespanLogin' => 0,
    'accessCodeLifespanUserAction' => 0,
    'accessTokenLifespan' => 0,
    'accessTokenLifespanForImplicitFlow' => 0,
    'accountTheme' => '',
    'actionTokenGeneratedByAdminLifespan' => 0,
    'actionTokenGeneratedByUserLifespan' => 0,
    'adminEventsDetailsEnabled' => null,
    'adminEventsEnabled' => null,
    'adminTheme' => '',
    'attributes' => [
        
    ],
    'authenticationFlows' => [
        [
                'alias' => '',
                'authenticationExecutions' => [
                                [
                                                                'authenticator' => '',
                                                                'authenticatorConfig' => '',
                                                                'authenticatorFlow' => null,
                                                                'autheticatorFlow' => null,
                                                                'flowAlias' => '',
                                                                'priority' => 0,
                                                                'requirement' => '',
                                                                'userSetupAllowed' => null
                                ]
                ],
                'builtIn' => null,
                'description' => '',
                'id' => '',
                'providerId' => '',
                'topLevel' => null
        ]
    ],
    'authenticatorConfig' => [
        [
                'alias' => '',
                'config' => [
                                
                ],
                'id' => ''
        ]
    ],
    'browserFlow' => '',
    'browserSecurityHeaders' => [
        
    ],
    'bruteForceProtected' => null,
    'clientAuthenticationFlow' => '',
    'clientScopeMappings' => [
        
    ],
    'clientScopes' => [
        [
                'attributes' => [
                                
                ],
                'description' => '',
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMappers' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'id' => '',
                                                                'name' => '',
                                                                'protocol' => '',
                                                                'protocolMapper' => ''
                                ]
                ]
        ]
    ],
    'clientSessionIdleTimeout' => 0,
    'clientSessionMaxLifespan' => 0,
    'clients' => [
        [
                'access' => [
                                
                ],
                'adminUrl' => '',
                'alwaysDisplayInConsole' => null,
                'attributes' => [
                                
                ],
                'authenticationFlowBindingOverrides' => [
                                
                ],
                'authorizationServicesEnabled' => null,
                'authorizationSettings' => [
                                'allowRemoteResourceManagement' => null,
                                'clientId' => '',
                                'decisionStrategy' => '',
                                'id' => '',
                                'name' => '',
                                'policies' => [
                                                                [
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'description' => '',
                                                                                                                                'id' => '',
                                                                                                                                'logic' => '',
                                                                                                                                'name' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'policyEnforcementMode' => '',
                                'resources' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'scopes' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'baseUrl' => '',
                'bearerOnly' => null,
                'clientAuthenticatorType' => '',
                'clientId' => '',
                'consentRequired' => null,
                'defaultClientScopes' => [
                                
                ],
                'defaultRoles' => [
                                
                ],
                'description' => '',
                'directAccessGrantsEnabled' => null,
                'enabled' => null,
                'frontchannelLogout' => null,
                'fullScopeAllowed' => null,
                'id' => '',
                'implicitFlowEnabled' => null,
                'name' => '',
                'nodeReRegistrationTimeout' => 0,
                'notBefore' => 0,
                'optionalClientScopes' => [
                                
                ],
                'origin' => '',
                'protocol' => '',
                'protocolMappers' => [
                                [
                                                                
                                ]
                ],
                'publicClient' => null,
                'redirectUris' => [
                                
                ],
                'registeredNodes' => [
                                
                ],
                'registrationAccessToken' => '',
                'rootUrl' => '',
                'secret' => '',
                'serviceAccountsEnabled' => null,
                'standardFlowEnabled' => null,
                'surrogateAuthRequired' => null,
                'webOrigins' => [
                                
                ]
        ]
    ],
    'components' => [
        'empty' => null,
        'loadFactor' => '',
        'threshold' => 0
    ],
    'defaultDefaultClientScopes' => [
        
    ],
    'defaultGroups' => [
        
    ],
    'defaultLocale' => '',
    'defaultOptionalClientScopes' => [
        
    ],
    'defaultRoles' => [
        
    ],
    'defaultSignatureAlgorithm' => '',
    'directGrantFlow' => '',
    'displayName' => '',
    'displayNameHtml' => '',
    'dockerAuthenticationFlow' => '',
    'duplicateEmailsAllowed' => null,
    'editUsernameAllowed' => null,
    'emailTheme' => '',
    'enabled' => null,
    'enabledEventTypes' => [
        
    ],
    'eventsEnabled' => null,
    'eventsExpiration' => 0,
    'eventsListeners' => [
        
    ],
    'failureFactor' => 0,
    'federatedUsers' => [
        [
                'access' => [
                                
                ],
                'attributes' => [
                                
                ],
                'clientConsents' => [
                                [
                                                                'clientId' => '',
                                                                'createdDate' => 0,
                                                                'grantedClientScopes' => [
                                                                                                                                
                                                                ],
                                                                'lastUpdatedDate' => 0
                                ]
                ],
                'clientRoles' => [
                                
                ],
                'createdTimestamp' => 0,
                'credentials' => [
                                [
                                                                'createdDate' => 0,
                                                                'credentialData' => '',
                                                                'id' => '',
                                                                'priority' => 0,
                                                                'secretData' => '',
                                                                'temporary' => null,
                                                                'type' => '',
                                                                'userLabel' => '',
                                                                'value' => ''
                                ]
                ],
                'disableableCredentialTypes' => [
                                
                ],
                'email' => '',
                'emailVerified' => null,
                'enabled' => null,
                'federatedIdentities' => [
                                [
                                                                'identityProvider' => '',
                                                                'userId' => '',
                                                                'userName' => ''
                                ]
                ],
                'federationLink' => '',
                'firstName' => '',
                'groups' => [
                                
                ],
                'id' => '',
                'lastName' => '',
                'notBefore' => 0,
                'origin' => '',
                'realmRoles' => [
                                
                ],
                'requiredActions' => [
                                
                ],
                'self' => '',
                'serviceAccountClientId' => '',
                'username' => ''
        ]
    ],
    'groups' => [
        [
                'access' => [
                                
                ],
                'attributes' => [
                                
                ],
                'clientRoles' => [
                                
                ],
                'id' => '',
                'name' => '',
                'path' => '',
                'realmRoles' => [
                                
                ],
                'subGroups' => [
                                
                ]
        ]
    ],
    'id' => '',
    'identityProviderMappers' => [
        [
                'config' => [
                                
                ],
                'id' => '',
                'identityProviderAlias' => '',
                'identityProviderMapper' => '',
                'name' => ''
        ]
    ],
    'identityProviders' => [
        [
                'addReadTokenRoleOnCreate' => null,
                'alias' => '',
                'config' => [
                                
                ],
                'displayName' => '',
                'enabled' => null,
                'firstBrokerLoginFlowAlias' => '',
                'internalId' => '',
                'linkOnly' => null,
                'postBrokerLoginFlowAlias' => '',
                'providerId' => '',
                'storeToken' => null,
                'trustEmail' => null
        ]
    ],
    'internationalizationEnabled' => null,
    'keycloakVersion' => '',
    'loginTheme' => '',
    'loginWithEmailAllowed' => null,
    'maxDeltaTimeSeconds' => 0,
    'maxFailureWaitSeconds' => 0,
    'minimumQuickLoginWaitSeconds' => 0,
    'notBefore' => 0,
    'offlineSessionIdleTimeout' => 0,
    'offlineSessionMaxLifespan' => 0,
    'offlineSessionMaxLifespanEnabled' => null,
    'otpPolicyAlgorithm' => '',
    'otpPolicyDigits' => 0,
    'otpPolicyInitialCounter' => 0,
    'otpPolicyLookAheadWindow' => 0,
    'otpPolicyPeriod' => 0,
    'otpPolicyType' => '',
    'otpSupportedApplications' => [
        
    ],
    'passwordPolicy' => '',
    'permanentLockout' => null,
    'protocolMappers' => [
        [
                
        ]
    ],
    'quickLoginCheckMilliSeconds' => 0,
    'realm' => '',
    'refreshTokenMaxReuse' => 0,
    'registrationAllowed' => null,
    'registrationEmailAsUsername' => null,
    'registrationFlow' => '',
    'rememberMe' => null,
    'requiredActions' => [
        [
                'alias' => '',
                'config' => [
                                
                ],
                'defaultAction' => null,
                'enabled' => null,
                'name' => '',
                'priority' => 0,
                'providerId' => ''
        ]
    ],
    'resetCredentialsFlow' => '',
    'resetPasswordAllowed' => null,
    'revokeRefreshToken' => null,
    'roles' => [
        'client' => [
                
        ],
        'realm' => [
                [
                                'attributes' => [
                                                                
                                ],
                                'clientRole' => null,
                                'composite' => null,
                                'composites' => [
                                                                'client' => [
                                                                                                                                
                                                                ],
                                                                'realm' => [
                                                                                                                                
                                                                ]
                                ],
                                'containerId' => '',
                                'description' => '',
                                'id' => '',
                                'name' => ''
                ]
        ]
    ],
    'scopeMappings' => [
        [
                'client' => '',
                'clientScope' => '',
                'roles' => [
                                
                ],
                'self' => ''
        ]
    ],
    'smtpServer' => [
        
    ],
    'sslRequired' => '',
    'ssoSessionIdleTimeout' => 0,
    'ssoSessionIdleTimeoutRememberMe' => 0,
    'ssoSessionMaxLifespan' => 0,
    'ssoSessionMaxLifespanRememberMe' => 0,
    'supportedLocales' => [
        
    ],
    'userFederationMappers' => [
        [
                'config' => [
                                
                ],
                'federationMapperType' => '',
                'federationProviderDisplayName' => '',
                'id' => '',
                'name' => ''
        ]
    ],
    'userFederationProviders' => [
        [
                'changedSyncPeriod' => 0,
                'config' => [
                                
                ],
                'displayName' => '',
                'fullSyncPeriod' => 0,
                'id' => '',
                'lastSync' => 0,
                'priority' => 0,
                'providerName' => ''
        ]
    ],
    'userManagedAccessAllowed' => null,
    'users' => [
        [
                
        ]
    ],
    'verifyEmail' => null,
    'waitIncrementSeconds' => 0,
    'webAuthnPolicyAcceptableAaguids' => [
        
    ],
    'webAuthnPolicyAttestationConveyancePreference' => '',
    'webAuthnPolicyAuthenticatorAttachment' => '',
    'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
    'webAuthnPolicyCreateTimeout' => 0,
    'webAuthnPolicyPasswordlessAcceptableAaguids' => [
        
    ],
    'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
    'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
    'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
    'webAuthnPolicyPasswordlessCreateTimeout' => 0,
    'webAuthnPolicyPasswordlessRequireResidentKey' => '',
    'webAuthnPolicyPasswordlessRpEntityName' => '',
    'webAuthnPolicyPasswordlessRpId' => '',
    'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
        
    ],
    'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
    'webAuthnPolicyRequireResidentKey' => '',
    'webAuthnPolicyRpEntityName' => '',
    'webAuthnPolicyRpId' => '',
    'webAuthnPolicySignatureAlgorithms' => [
        
    ],
    'webAuthnPolicyUserVerificationRequirement' => ''
  ]),
  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}}/', [
  'body' => '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accessCodeLifespan' => 0,
  'accessCodeLifespanLogin' => 0,
  'accessCodeLifespanUserAction' => 0,
  'accessTokenLifespan' => 0,
  'accessTokenLifespanForImplicitFlow' => 0,
  'accountTheme' => '',
  'actionTokenGeneratedByAdminLifespan' => 0,
  'actionTokenGeneratedByUserLifespan' => 0,
  'adminEventsDetailsEnabled' => null,
  'adminEventsEnabled' => null,
  'adminTheme' => '',
  'attributes' => [
    
  ],
  'authenticationFlows' => [
    [
        'alias' => '',
        'authenticationExecutions' => [
                [
                                'authenticator' => '',
                                'authenticatorConfig' => '',
                                'authenticatorFlow' => null,
                                'autheticatorFlow' => null,
                                'flowAlias' => '',
                                'priority' => 0,
                                'requirement' => '',
                                'userSetupAllowed' => null
                ]
        ],
        'builtIn' => null,
        'description' => '',
        'id' => '',
        'providerId' => '',
        'topLevel' => null
    ]
  ],
  'authenticatorConfig' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'id' => ''
    ]
  ],
  'browserFlow' => '',
  'browserSecurityHeaders' => [
    
  ],
  'bruteForceProtected' => null,
  'clientAuthenticationFlow' => '',
  'clientScopeMappings' => [
    
  ],
  'clientScopes' => [
    [
        'attributes' => [
                
        ],
        'description' => '',
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                'config' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'protocol' => '',
                                'protocolMapper' => ''
                ]
        ]
    ]
  ],
  'clientSessionIdleTimeout' => 0,
  'clientSessionMaxLifespan' => 0,
  'clients' => [
    [
        'access' => [
                
        ],
        'adminUrl' => '',
        'alwaysDisplayInConsole' => null,
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'authorizationServicesEnabled' => null,
        'authorizationSettings' => [
                'allowRemoteResourceManagement' => null,
                'clientId' => '',
                'decisionStrategy' => '',
                'id' => '',
                'name' => '',
                'policies' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'decisionStrategy' => '',
                                                                'description' => '',
                                                                'id' => '',
                                                                'logic' => '',
                                                                'name' => '',
                                                                'owner' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'resourcesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'policyEnforcementMode' => '',
                'resources' => [
                                [
                                                                
                                ]
                ],
                'scopes' => [
                                [
                                                                
                                ]
                ]
        ],
        'baseUrl' => '',
        'bearerOnly' => null,
        'clientAuthenticatorType' => '',
        'clientId' => '',
        'consentRequired' => null,
        'defaultClientScopes' => [
                
        ],
        'defaultRoles' => [
                
        ],
        'description' => '',
        'directAccessGrantsEnabled' => null,
        'enabled' => null,
        'frontchannelLogout' => null,
        'fullScopeAllowed' => null,
        'id' => '',
        'implicitFlowEnabled' => null,
        'name' => '',
        'nodeReRegistrationTimeout' => 0,
        'notBefore' => 0,
        'optionalClientScopes' => [
                
        ],
        'origin' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                
                ]
        ],
        'publicClient' => null,
        'redirectUris' => [
                
        ],
        'registeredNodes' => [
                
        ],
        'registrationAccessToken' => '',
        'rootUrl' => '',
        'secret' => '',
        'serviceAccountsEnabled' => null,
        'standardFlowEnabled' => null,
        'surrogateAuthRequired' => null,
        'webOrigins' => [
                
        ]
    ]
  ],
  'components' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'defaultDefaultClientScopes' => [
    
  ],
  'defaultGroups' => [
    
  ],
  'defaultLocale' => '',
  'defaultOptionalClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'defaultSignatureAlgorithm' => '',
  'directGrantFlow' => '',
  'displayName' => '',
  'displayNameHtml' => '',
  'dockerAuthenticationFlow' => '',
  'duplicateEmailsAllowed' => null,
  'editUsernameAllowed' => null,
  'emailTheme' => '',
  'enabled' => null,
  'enabledEventTypes' => [
    
  ],
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'failureFactor' => 0,
  'federatedUsers' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'createdDate' => 0,
                                'grantedClientScopes' => [
                                                                
                                ],
                                'lastUpdatedDate' => 0
                ]
        ],
        'clientRoles' => [
                
        ],
        'createdTimestamp' => 0,
        'credentials' => [
                [
                                'createdDate' => 0,
                                'credentialData' => '',
                                'id' => '',
                                'priority' => 0,
                                'secretData' => '',
                                'temporary' => null,
                                'type' => '',
                                'userLabel' => '',
                                'value' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'email' => '',
        'emailVerified' => null,
        'enabled' => null,
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'federationLink' => '',
        'firstName' => '',
        'groups' => [
                
        ],
        'id' => '',
        'lastName' => '',
        'notBefore' => 0,
        'origin' => '',
        'realmRoles' => [
                
        ],
        'requiredActions' => [
                
        ],
        'self' => '',
        'serviceAccountClientId' => '',
        'username' => ''
    ]
  ],
  'groups' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientRoles' => [
                
        ],
        'id' => '',
        'name' => '',
        'path' => '',
        'realmRoles' => [
                
        ],
        'subGroups' => [
                
        ]
    ]
  ],
  'id' => '',
  'identityProviderMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'identityProviderAlias' => '',
        'identityProviderMapper' => '',
        'name' => ''
    ]
  ],
  'identityProviders' => [
    [
        'addReadTokenRoleOnCreate' => null,
        'alias' => '',
        'config' => [
                
        ],
        'displayName' => '',
        'enabled' => null,
        'firstBrokerLoginFlowAlias' => '',
        'internalId' => '',
        'linkOnly' => null,
        'postBrokerLoginFlowAlias' => '',
        'providerId' => '',
        'storeToken' => null,
        'trustEmail' => null
    ]
  ],
  'internationalizationEnabled' => null,
  'keycloakVersion' => '',
  'loginTheme' => '',
  'loginWithEmailAllowed' => null,
  'maxDeltaTimeSeconds' => 0,
  'maxFailureWaitSeconds' => 0,
  'minimumQuickLoginWaitSeconds' => 0,
  'notBefore' => 0,
  'offlineSessionIdleTimeout' => 0,
  'offlineSessionMaxLifespan' => 0,
  'offlineSessionMaxLifespanEnabled' => null,
  'otpPolicyAlgorithm' => '',
  'otpPolicyDigits' => 0,
  'otpPolicyInitialCounter' => 0,
  'otpPolicyLookAheadWindow' => 0,
  'otpPolicyPeriod' => 0,
  'otpPolicyType' => '',
  'otpSupportedApplications' => [
    
  ],
  'passwordPolicy' => '',
  'permanentLockout' => null,
  'protocolMappers' => [
    [
        
    ]
  ],
  'quickLoginCheckMilliSeconds' => 0,
  'realm' => '',
  'refreshTokenMaxReuse' => 0,
  'registrationAllowed' => null,
  'registrationEmailAsUsername' => null,
  'registrationFlow' => '',
  'rememberMe' => null,
  'requiredActions' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'defaultAction' => null,
        'enabled' => null,
        'name' => '',
        'priority' => 0,
        'providerId' => ''
    ]
  ],
  'resetCredentialsFlow' => '',
  'resetPasswordAllowed' => null,
  'revokeRefreshToken' => null,
  'roles' => [
    'client' => [
        
    ],
    'realm' => [
        [
                'attributes' => [
                                
                ],
                'clientRole' => null,
                'composite' => null,
                'composites' => [
                                'client' => [
                                                                
                                ],
                                'realm' => [
                                                                
                                ]
                ],
                'containerId' => '',
                'description' => '',
                'id' => '',
                'name' => ''
        ]
    ]
  ],
  'scopeMappings' => [
    [
        'client' => '',
        'clientScope' => '',
        'roles' => [
                
        ],
        'self' => ''
    ]
  ],
  'smtpServer' => [
    
  ],
  'sslRequired' => '',
  'ssoSessionIdleTimeout' => 0,
  'ssoSessionIdleTimeoutRememberMe' => 0,
  'ssoSessionMaxLifespan' => 0,
  'ssoSessionMaxLifespanRememberMe' => 0,
  'supportedLocales' => [
    
  ],
  'userFederationMappers' => [
    [
        'config' => [
                
        ],
        'federationMapperType' => '',
        'federationProviderDisplayName' => '',
        'id' => '',
        'name' => ''
    ]
  ],
  'userFederationProviders' => [
    [
        'changedSyncPeriod' => 0,
        'config' => [
                
        ],
        'displayName' => '',
        'fullSyncPeriod' => 0,
        'id' => '',
        'lastSync' => 0,
        'priority' => 0,
        'providerName' => ''
    ]
  ],
  'userManagedAccessAllowed' => null,
  'users' => [
    [
        
    ]
  ],
  'verifyEmail' => null,
  'waitIncrementSeconds' => 0,
  'webAuthnPolicyAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyAttestationConveyancePreference' => '',
  'webAuthnPolicyAuthenticatorAttachment' => '',
  'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
  'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
  'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyPasswordlessCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessRequireResidentKey' => '',
  'webAuthnPolicyPasswordlessRpEntityName' => '',
  'webAuthnPolicyPasswordlessRpId' => '',
  'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
  'webAuthnPolicyRequireResidentKey' => '',
  'webAuthnPolicyRpEntityName' => '',
  'webAuthnPolicyRpId' => '',
  'webAuthnPolicySignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyUserVerificationRequirement' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accessCodeLifespan' => 0,
  'accessCodeLifespanLogin' => 0,
  'accessCodeLifespanUserAction' => 0,
  'accessTokenLifespan' => 0,
  'accessTokenLifespanForImplicitFlow' => 0,
  'accountTheme' => '',
  'actionTokenGeneratedByAdminLifespan' => 0,
  'actionTokenGeneratedByUserLifespan' => 0,
  'adminEventsDetailsEnabled' => null,
  'adminEventsEnabled' => null,
  'adminTheme' => '',
  'attributes' => [
    
  ],
  'authenticationFlows' => [
    [
        'alias' => '',
        'authenticationExecutions' => [
                [
                                'authenticator' => '',
                                'authenticatorConfig' => '',
                                'authenticatorFlow' => null,
                                'autheticatorFlow' => null,
                                'flowAlias' => '',
                                'priority' => 0,
                                'requirement' => '',
                                'userSetupAllowed' => null
                ]
        ],
        'builtIn' => null,
        'description' => '',
        'id' => '',
        'providerId' => '',
        'topLevel' => null
    ]
  ],
  'authenticatorConfig' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'id' => ''
    ]
  ],
  'browserFlow' => '',
  'browserSecurityHeaders' => [
    
  ],
  'bruteForceProtected' => null,
  'clientAuthenticationFlow' => '',
  'clientScopeMappings' => [
    
  ],
  'clientScopes' => [
    [
        'attributes' => [
                
        ],
        'description' => '',
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                'config' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'protocol' => '',
                                'protocolMapper' => ''
                ]
        ]
    ]
  ],
  'clientSessionIdleTimeout' => 0,
  'clientSessionMaxLifespan' => 0,
  'clients' => [
    [
        'access' => [
                
        ],
        'adminUrl' => '',
        'alwaysDisplayInConsole' => null,
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'authorizationServicesEnabled' => null,
        'authorizationSettings' => [
                'allowRemoteResourceManagement' => null,
                'clientId' => '',
                'decisionStrategy' => '',
                'id' => '',
                'name' => '',
                'policies' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'decisionStrategy' => '',
                                                                'description' => '',
                                                                'id' => '',
                                                                'logic' => '',
                                                                'name' => '',
                                                                'owner' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'resourcesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'policyEnforcementMode' => '',
                'resources' => [
                                [
                                                                
                                ]
                ],
                'scopes' => [
                                [
                                                                
                                ]
                ]
        ],
        'baseUrl' => '',
        'bearerOnly' => null,
        'clientAuthenticatorType' => '',
        'clientId' => '',
        'consentRequired' => null,
        'defaultClientScopes' => [
                
        ],
        'defaultRoles' => [
                
        ],
        'description' => '',
        'directAccessGrantsEnabled' => null,
        'enabled' => null,
        'frontchannelLogout' => null,
        'fullScopeAllowed' => null,
        'id' => '',
        'implicitFlowEnabled' => null,
        'name' => '',
        'nodeReRegistrationTimeout' => 0,
        'notBefore' => 0,
        'optionalClientScopes' => [
                
        ],
        'origin' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                
                ]
        ],
        'publicClient' => null,
        'redirectUris' => [
                
        ],
        'registeredNodes' => [
                
        ],
        'registrationAccessToken' => '',
        'rootUrl' => '',
        'secret' => '',
        'serviceAccountsEnabled' => null,
        'standardFlowEnabled' => null,
        'surrogateAuthRequired' => null,
        'webOrigins' => [
                
        ]
    ]
  ],
  'components' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'defaultDefaultClientScopes' => [
    
  ],
  'defaultGroups' => [
    
  ],
  'defaultLocale' => '',
  'defaultOptionalClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'defaultSignatureAlgorithm' => '',
  'directGrantFlow' => '',
  'displayName' => '',
  'displayNameHtml' => '',
  'dockerAuthenticationFlow' => '',
  'duplicateEmailsAllowed' => null,
  'editUsernameAllowed' => null,
  'emailTheme' => '',
  'enabled' => null,
  'enabledEventTypes' => [
    
  ],
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'failureFactor' => 0,
  'federatedUsers' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'createdDate' => 0,
                                'grantedClientScopes' => [
                                                                
                                ],
                                'lastUpdatedDate' => 0
                ]
        ],
        'clientRoles' => [
                
        ],
        'createdTimestamp' => 0,
        'credentials' => [
                [
                                'createdDate' => 0,
                                'credentialData' => '',
                                'id' => '',
                                'priority' => 0,
                                'secretData' => '',
                                'temporary' => null,
                                'type' => '',
                                'userLabel' => '',
                                'value' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'email' => '',
        'emailVerified' => null,
        'enabled' => null,
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'federationLink' => '',
        'firstName' => '',
        'groups' => [
                
        ],
        'id' => '',
        'lastName' => '',
        'notBefore' => 0,
        'origin' => '',
        'realmRoles' => [
                
        ],
        'requiredActions' => [
                
        ],
        'self' => '',
        'serviceAccountClientId' => '',
        'username' => ''
    ]
  ],
  'groups' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientRoles' => [
                
        ],
        'id' => '',
        'name' => '',
        'path' => '',
        'realmRoles' => [
                
        ],
        'subGroups' => [
                
        ]
    ]
  ],
  'id' => '',
  'identityProviderMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'identityProviderAlias' => '',
        'identityProviderMapper' => '',
        'name' => ''
    ]
  ],
  'identityProviders' => [
    [
        'addReadTokenRoleOnCreate' => null,
        'alias' => '',
        'config' => [
                
        ],
        'displayName' => '',
        'enabled' => null,
        'firstBrokerLoginFlowAlias' => '',
        'internalId' => '',
        'linkOnly' => null,
        'postBrokerLoginFlowAlias' => '',
        'providerId' => '',
        'storeToken' => null,
        'trustEmail' => null
    ]
  ],
  'internationalizationEnabled' => null,
  'keycloakVersion' => '',
  'loginTheme' => '',
  'loginWithEmailAllowed' => null,
  'maxDeltaTimeSeconds' => 0,
  'maxFailureWaitSeconds' => 0,
  'minimumQuickLoginWaitSeconds' => 0,
  'notBefore' => 0,
  'offlineSessionIdleTimeout' => 0,
  'offlineSessionMaxLifespan' => 0,
  'offlineSessionMaxLifespanEnabled' => null,
  'otpPolicyAlgorithm' => '',
  'otpPolicyDigits' => 0,
  'otpPolicyInitialCounter' => 0,
  'otpPolicyLookAheadWindow' => 0,
  'otpPolicyPeriod' => 0,
  'otpPolicyType' => '',
  'otpSupportedApplications' => [
    
  ],
  'passwordPolicy' => '',
  'permanentLockout' => null,
  'protocolMappers' => [
    [
        
    ]
  ],
  'quickLoginCheckMilliSeconds' => 0,
  'realm' => '',
  'refreshTokenMaxReuse' => 0,
  'registrationAllowed' => null,
  'registrationEmailAsUsername' => null,
  'registrationFlow' => '',
  'rememberMe' => null,
  'requiredActions' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'defaultAction' => null,
        'enabled' => null,
        'name' => '',
        'priority' => 0,
        'providerId' => ''
    ]
  ],
  'resetCredentialsFlow' => '',
  'resetPasswordAllowed' => null,
  'revokeRefreshToken' => null,
  'roles' => [
    'client' => [
        
    ],
    'realm' => [
        [
                'attributes' => [
                                
                ],
                'clientRole' => null,
                'composite' => null,
                'composites' => [
                                'client' => [
                                                                
                                ],
                                'realm' => [
                                                                
                                ]
                ],
                'containerId' => '',
                'description' => '',
                'id' => '',
                'name' => ''
        ]
    ]
  ],
  'scopeMappings' => [
    [
        'client' => '',
        'clientScope' => '',
        'roles' => [
                
        ],
        'self' => ''
    ]
  ],
  'smtpServer' => [
    
  ],
  'sslRequired' => '',
  'ssoSessionIdleTimeout' => 0,
  'ssoSessionIdleTimeoutRememberMe' => 0,
  'ssoSessionMaxLifespan' => 0,
  'ssoSessionMaxLifespanRememberMe' => 0,
  'supportedLocales' => [
    
  ],
  'userFederationMappers' => [
    [
        'config' => [
                
        ],
        'federationMapperType' => '',
        'federationProviderDisplayName' => '',
        'id' => '',
        'name' => ''
    ]
  ],
  'userFederationProviders' => [
    [
        'changedSyncPeriod' => 0,
        'config' => [
                
        ],
        'displayName' => '',
        'fullSyncPeriod' => 0,
        'id' => '',
        'lastSync' => 0,
        'priority' => 0,
        'providerName' => ''
    ]
  ],
  'userManagedAccessAllowed' => null,
  'users' => [
    [
        
    ]
  ],
  'verifyEmail' => null,
  'waitIncrementSeconds' => 0,
  'webAuthnPolicyAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyAttestationConveyancePreference' => '',
  'webAuthnPolicyAuthenticatorAttachment' => '',
  'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
  'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
  'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyPasswordlessCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessRequireResidentKey' => '',
  'webAuthnPolicyPasswordlessRpEntityName' => '',
  'webAuthnPolicyPasswordlessRpId' => '',
  'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
  'webAuthnPolicyRequireResidentKey' => '',
  'webAuthnPolicyRpEntityName' => '',
  'webAuthnPolicyRpId' => '',
  'webAuthnPolicySignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyUserVerificationRequirement' => ''
]));
$request->setRequestUrl('{{baseUrl}}/');
$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}}/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/"

payload = {
    "accessCodeLifespan": 0,
    "accessCodeLifespanLogin": 0,
    "accessCodeLifespanUserAction": 0,
    "accessTokenLifespan": 0,
    "accessTokenLifespanForImplicitFlow": 0,
    "accountTheme": "",
    "actionTokenGeneratedByAdminLifespan": 0,
    "actionTokenGeneratedByUserLifespan": 0,
    "adminEventsDetailsEnabled": False,
    "adminEventsEnabled": False,
    "adminTheme": "",
    "attributes": {},
    "authenticationFlows": [
        {
            "alias": "",
            "authenticationExecutions": [
                {
                    "authenticator": "",
                    "authenticatorConfig": "",
                    "authenticatorFlow": False,
                    "autheticatorFlow": False,
                    "flowAlias": "",
                    "priority": 0,
                    "requirement": "",
                    "userSetupAllowed": False
                }
            ],
            "builtIn": False,
            "description": "",
            "id": "",
            "providerId": "",
            "topLevel": False
        }
    ],
    "authenticatorConfig": [
        {
            "alias": "",
            "config": {},
            "id": ""
        }
    ],
    "browserFlow": "",
    "browserSecurityHeaders": {},
    "bruteForceProtected": False,
    "clientAuthenticationFlow": "",
    "clientScopeMappings": {},
    "clientScopes": [
        {
            "attributes": {},
            "description": "",
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMappers": [
                {
                    "config": {},
                    "id": "",
                    "name": "",
                    "protocol": "",
                    "protocolMapper": ""
                }
            ]
        }
    ],
    "clientSessionIdleTimeout": 0,
    "clientSessionMaxLifespan": 0,
    "clients": [
        {
            "access": {},
            "adminUrl": "",
            "alwaysDisplayInConsole": False,
            "attributes": {},
            "authenticationFlowBindingOverrides": {},
            "authorizationServicesEnabled": False,
            "authorizationSettings": {
                "allowRemoteResourceManagement": False,
                "clientId": "",
                "decisionStrategy": "",
                "id": "",
                "name": "",
                "policies": [
                    {
                        "config": {},
                        "decisionStrategy": "",
                        "description": "",
                        "id": "",
                        "logic": "",
                        "name": "",
                        "owner": "",
                        "policies": [],
                        "resources": [],
                        "resourcesData": [
                            {
                                "attributes": {},
                                "displayName": "",
                                "icon_uri": "",
                                "id": "",
                                "name": "",
                                "ownerManagedAccess": False,
                                "scopes": [
                                    {
                                        "displayName": "",
                                        "iconUri": "",
                                        "id": "",
                                        "name": "",
                                        "policies": [],
                                        "resources": []
                                    }
                                ],
                                "type": "",
                                "uris": []
                            }
                        ],
                        "scopes": [],
                        "scopesData": [{}],
                        "type": ""
                    }
                ],
                "policyEnforcementMode": "",
                "resources": [{}],
                "scopes": [{}]
            },
            "baseUrl": "",
            "bearerOnly": False,
            "clientAuthenticatorType": "",
            "clientId": "",
            "consentRequired": False,
            "defaultClientScopes": [],
            "defaultRoles": [],
            "description": "",
            "directAccessGrantsEnabled": False,
            "enabled": False,
            "frontchannelLogout": False,
            "fullScopeAllowed": False,
            "id": "",
            "implicitFlowEnabled": False,
            "name": "",
            "nodeReRegistrationTimeout": 0,
            "notBefore": 0,
            "optionalClientScopes": [],
            "origin": "",
            "protocol": "",
            "protocolMappers": [{}],
            "publicClient": False,
            "redirectUris": [],
            "registeredNodes": {},
            "registrationAccessToken": "",
            "rootUrl": "",
            "secret": "",
            "serviceAccountsEnabled": False,
            "standardFlowEnabled": False,
            "surrogateAuthRequired": False,
            "webOrigins": []
        }
    ],
    "components": {
        "empty": False,
        "loadFactor": "",
        "threshold": 0
    },
    "defaultDefaultClientScopes": [],
    "defaultGroups": [],
    "defaultLocale": "",
    "defaultOptionalClientScopes": [],
    "defaultRoles": [],
    "defaultSignatureAlgorithm": "",
    "directGrantFlow": "",
    "displayName": "",
    "displayNameHtml": "",
    "dockerAuthenticationFlow": "",
    "duplicateEmailsAllowed": False,
    "editUsernameAllowed": False,
    "emailTheme": "",
    "enabled": False,
    "enabledEventTypes": [],
    "eventsEnabled": False,
    "eventsExpiration": 0,
    "eventsListeners": [],
    "failureFactor": 0,
    "federatedUsers": [
        {
            "access": {},
            "attributes": {},
            "clientConsents": [
                {
                    "clientId": "",
                    "createdDate": 0,
                    "grantedClientScopes": [],
                    "lastUpdatedDate": 0
                }
            ],
            "clientRoles": {},
            "createdTimestamp": 0,
            "credentials": [
                {
                    "createdDate": 0,
                    "credentialData": "",
                    "id": "",
                    "priority": 0,
                    "secretData": "",
                    "temporary": False,
                    "type": "",
                    "userLabel": "",
                    "value": ""
                }
            ],
            "disableableCredentialTypes": [],
            "email": "",
            "emailVerified": False,
            "enabled": False,
            "federatedIdentities": [
                {
                    "identityProvider": "",
                    "userId": "",
                    "userName": ""
                }
            ],
            "federationLink": "",
            "firstName": "",
            "groups": [],
            "id": "",
            "lastName": "",
            "notBefore": 0,
            "origin": "",
            "realmRoles": [],
            "requiredActions": [],
            "self": "",
            "serviceAccountClientId": "",
            "username": ""
        }
    ],
    "groups": [
        {
            "access": {},
            "attributes": {},
            "clientRoles": {},
            "id": "",
            "name": "",
            "path": "",
            "realmRoles": [],
            "subGroups": []
        }
    ],
    "id": "",
    "identityProviderMappers": [
        {
            "config": {},
            "id": "",
            "identityProviderAlias": "",
            "identityProviderMapper": "",
            "name": ""
        }
    ],
    "identityProviders": [
        {
            "addReadTokenRoleOnCreate": False,
            "alias": "",
            "config": {},
            "displayName": "",
            "enabled": False,
            "firstBrokerLoginFlowAlias": "",
            "internalId": "",
            "linkOnly": False,
            "postBrokerLoginFlowAlias": "",
            "providerId": "",
            "storeToken": False,
            "trustEmail": False
        }
    ],
    "internationalizationEnabled": False,
    "keycloakVersion": "",
    "loginTheme": "",
    "loginWithEmailAllowed": False,
    "maxDeltaTimeSeconds": 0,
    "maxFailureWaitSeconds": 0,
    "minimumQuickLoginWaitSeconds": 0,
    "notBefore": 0,
    "offlineSessionIdleTimeout": 0,
    "offlineSessionMaxLifespan": 0,
    "offlineSessionMaxLifespanEnabled": False,
    "otpPolicyAlgorithm": "",
    "otpPolicyDigits": 0,
    "otpPolicyInitialCounter": 0,
    "otpPolicyLookAheadWindow": 0,
    "otpPolicyPeriod": 0,
    "otpPolicyType": "",
    "otpSupportedApplications": [],
    "passwordPolicy": "",
    "permanentLockout": False,
    "protocolMappers": [{}],
    "quickLoginCheckMilliSeconds": 0,
    "realm": "",
    "refreshTokenMaxReuse": 0,
    "registrationAllowed": False,
    "registrationEmailAsUsername": False,
    "registrationFlow": "",
    "rememberMe": False,
    "requiredActions": [
        {
            "alias": "",
            "config": {},
            "defaultAction": False,
            "enabled": False,
            "name": "",
            "priority": 0,
            "providerId": ""
        }
    ],
    "resetCredentialsFlow": "",
    "resetPasswordAllowed": False,
    "revokeRefreshToken": False,
    "roles": {
        "client": {},
        "realm": [
            {
                "attributes": {},
                "clientRole": False,
                "composite": False,
                "composites": {
                    "client": {},
                    "realm": []
                },
                "containerId": "",
                "description": "",
                "id": "",
                "name": ""
            }
        ]
    },
    "scopeMappings": [
        {
            "client": "",
            "clientScope": "",
            "roles": [],
            "self": ""
        }
    ],
    "smtpServer": {},
    "sslRequired": "",
    "ssoSessionIdleTimeout": 0,
    "ssoSessionIdleTimeoutRememberMe": 0,
    "ssoSessionMaxLifespan": 0,
    "ssoSessionMaxLifespanRememberMe": 0,
    "supportedLocales": [],
    "userFederationMappers": [
        {
            "config": {},
            "federationMapperType": "",
            "federationProviderDisplayName": "",
            "id": "",
            "name": ""
        }
    ],
    "userFederationProviders": [
        {
            "changedSyncPeriod": 0,
            "config": {},
            "displayName": "",
            "fullSyncPeriod": 0,
            "id": "",
            "lastSync": 0,
            "priority": 0,
            "providerName": ""
        }
    ],
    "userManagedAccessAllowed": False,
    "users": [{}],
    "verifyEmail": False,
    "waitIncrementSeconds": 0,
    "webAuthnPolicyAcceptableAaguids": [],
    "webAuthnPolicyAttestationConveyancePreference": "",
    "webAuthnPolicyAuthenticatorAttachment": "",
    "webAuthnPolicyAvoidSameAuthenticatorRegister": False,
    "webAuthnPolicyCreateTimeout": 0,
    "webAuthnPolicyPasswordlessAcceptableAaguids": [],
    "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
    "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
    "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": False,
    "webAuthnPolicyPasswordlessCreateTimeout": 0,
    "webAuthnPolicyPasswordlessRequireResidentKey": "",
    "webAuthnPolicyPasswordlessRpEntityName": "",
    "webAuthnPolicyPasswordlessRpId": "",
    "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
    "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
    "webAuthnPolicyRequireResidentKey": "",
    "webAuthnPolicyRpEntityName": "",
    "webAuthnPolicyRpId": "",
    "webAuthnPolicySignatureAlgorithms": [],
    "webAuthnPolicyUserVerificationRequirement": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/"

payload <- "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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}}/")

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  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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/') do |req|
  req.body = "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/";

    let payload = json!({
        "accessCodeLifespan": 0,
        "accessCodeLifespanLogin": 0,
        "accessCodeLifespanUserAction": 0,
        "accessTokenLifespan": 0,
        "accessTokenLifespanForImplicitFlow": 0,
        "accountTheme": "",
        "actionTokenGeneratedByAdminLifespan": 0,
        "actionTokenGeneratedByUserLifespan": 0,
        "adminEventsDetailsEnabled": false,
        "adminEventsEnabled": false,
        "adminTheme": "",
        "attributes": json!({}),
        "authenticationFlows": (
            json!({
                "alias": "",
                "authenticationExecutions": (
                    json!({
                        "authenticator": "",
                        "authenticatorConfig": "",
                        "authenticatorFlow": false,
                        "autheticatorFlow": false,
                        "flowAlias": "",
                        "priority": 0,
                        "requirement": "",
                        "userSetupAllowed": false
                    })
                ),
                "builtIn": false,
                "description": "",
                "id": "",
                "providerId": "",
                "topLevel": false
            })
        ),
        "authenticatorConfig": (
            json!({
                "alias": "",
                "config": json!({}),
                "id": ""
            })
        ),
        "browserFlow": "",
        "browserSecurityHeaders": json!({}),
        "bruteForceProtected": false,
        "clientAuthenticationFlow": "",
        "clientScopeMappings": json!({}),
        "clientScopes": (
            json!({
                "attributes": json!({}),
                "description": "",
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMappers": (
                    json!({
                        "config": json!({}),
                        "id": "",
                        "name": "",
                        "protocol": "",
                        "protocolMapper": ""
                    })
                )
            })
        ),
        "clientSessionIdleTimeout": 0,
        "clientSessionMaxLifespan": 0,
        "clients": (
            json!({
                "access": json!({}),
                "adminUrl": "",
                "alwaysDisplayInConsole": false,
                "attributes": json!({}),
                "authenticationFlowBindingOverrides": json!({}),
                "authorizationServicesEnabled": false,
                "authorizationSettings": json!({
                    "allowRemoteResourceManagement": false,
                    "clientId": "",
                    "decisionStrategy": "",
                    "id": "",
                    "name": "",
                    "policies": (
                        json!({
                            "config": json!({}),
                            "decisionStrategy": "",
                            "description": "",
                            "id": "",
                            "logic": "",
                            "name": "",
                            "owner": "",
                            "policies": (),
                            "resources": (),
                            "resourcesData": (
                                json!({
                                    "attributes": json!({}),
                                    "displayName": "",
                                    "icon_uri": "",
                                    "id": "",
                                    "name": "",
                                    "ownerManagedAccess": false,
                                    "scopes": (
                                        json!({
                                            "displayName": "",
                                            "iconUri": "",
                                            "id": "",
                                            "name": "",
                                            "policies": (),
                                            "resources": ()
                                        })
                                    ),
                                    "type": "",
                                    "uris": ()
                                })
                            ),
                            "scopes": (),
                            "scopesData": (json!({})),
                            "type": ""
                        })
                    ),
                    "policyEnforcementMode": "",
                    "resources": (json!({})),
                    "scopes": (json!({}))
                }),
                "baseUrl": "",
                "bearerOnly": false,
                "clientAuthenticatorType": "",
                "clientId": "",
                "consentRequired": false,
                "defaultClientScopes": (),
                "defaultRoles": (),
                "description": "",
                "directAccessGrantsEnabled": false,
                "enabled": false,
                "frontchannelLogout": false,
                "fullScopeAllowed": false,
                "id": "",
                "implicitFlowEnabled": false,
                "name": "",
                "nodeReRegistrationTimeout": 0,
                "notBefore": 0,
                "optionalClientScopes": (),
                "origin": "",
                "protocol": "",
                "protocolMappers": (json!({})),
                "publicClient": false,
                "redirectUris": (),
                "registeredNodes": json!({}),
                "registrationAccessToken": "",
                "rootUrl": "",
                "secret": "",
                "serviceAccountsEnabled": false,
                "standardFlowEnabled": false,
                "surrogateAuthRequired": false,
                "webOrigins": ()
            })
        ),
        "components": json!({
            "empty": false,
            "loadFactor": "",
            "threshold": 0
        }),
        "defaultDefaultClientScopes": (),
        "defaultGroups": (),
        "defaultLocale": "",
        "defaultOptionalClientScopes": (),
        "defaultRoles": (),
        "defaultSignatureAlgorithm": "",
        "directGrantFlow": "",
        "displayName": "",
        "displayNameHtml": "",
        "dockerAuthenticationFlow": "",
        "duplicateEmailsAllowed": false,
        "editUsernameAllowed": false,
        "emailTheme": "",
        "enabled": false,
        "enabledEventTypes": (),
        "eventsEnabled": false,
        "eventsExpiration": 0,
        "eventsListeners": (),
        "failureFactor": 0,
        "federatedUsers": (
            json!({
                "access": json!({}),
                "attributes": json!({}),
                "clientConsents": (
                    json!({
                        "clientId": "",
                        "createdDate": 0,
                        "grantedClientScopes": (),
                        "lastUpdatedDate": 0
                    })
                ),
                "clientRoles": json!({}),
                "createdTimestamp": 0,
                "credentials": (
                    json!({
                        "createdDate": 0,
                        "credentialData": "",
                        "id": "",
                        "priority": 0,
                        "secretData": "",
                        "temporary": false,
                        "type": "",
                        "userLabel": "",
                        "value": ""
                    })
                ),
                "disableableCredentialTypes": (),
                "email": "",
                "emailVerified": false,
                "enabled": false,
                "federatedIdentities": (
                    json!({
                        "identityProvider": "",
                        "userId": "",
                        "userName": ""
                    })
                ),
                "federationLink": "",
                "firstName": "",
                "groups": (),
                "id": "",
                "lastName": "",
                "notBefore": 0,
                "origin": "",
                "realmRoles": (),
                "requiredActions": (),
                "self": "",
                "serviceAccountClientId": "",
                "username": ""
            })
        ),
        "groups": (
            json!({
                "access": json!({}),
                "attributes": json!({}),
                "clientRoles": json!({}),
                "id": "",
                "name": "",
                "path": "",
                "realmRoles": (),
                "subGroups": ()
            })
        ),
        "id": "",
        "identityProviderMappers": (
            json!({
                "config": json!({}),
                "id": "",
                "identityProviderAlias": "",
                "identityProviderMapper": "",
                "name": ""
            })
        ),
        "identityProviders": (
            json!({
                "addReadTokenRoleOnCreate": false,
                "alias": "",
                "config": json!({}),
                "displayName": "",
                "enabled": false,
                "firstBrokerLoginFlowAlias": "",
                "internalId": "",
                "linkOnly": false,
                "postBrokerLoginFlowAlias": "",
                "providerId": "",
                "storeToken": false,
                "trustEmail": false
            })
        ),
        "internationalizationEnabled": false,
        "keycloakVersion": "",
        "loginTheme": "",
        "loginWithEmailAllowed": false,
        "maxDeltaTimeSeconds": 0,
        "maxFailureWaitSeconds": 0,
        "minimumQuickLoginWaitSeconds": 0,
        "notBefore": 0,
        "offlineSessionIdleTimeout": 0,
        "offlineSessionMaxLifespan": 0,
        "offlineSessionMaxLifespanEnabled": false,
        "otpPolicyAlgorithm": "",
        "otpPolicyDigits": 0,
        "otpPolicyInitialCounter": 0,
        "otpPolicyLookAheadWindow": 0,
        "otpPolicyPeriod": 0,
        "otpPolicyType": "",
        "otpSupportedApplications": (),
        "passwordPolicy": "",
        "permanentLockout": false,
        "protocolMappers": (json!({})),
        "quickLoginCheckMilliSeconds": 0,
        "realm": "",
        "refreshTokenMaxReuse": 0,
        "registrationAllowed": false,
        "registrationEmailAsUsername": false,
        "registrationFlow": "",
        "rememberMe": false,
        "requiredActions": (
            json!({
                "alias": "",
                "config": json!({}),
                "defaultAction": false,
                "enabled": false,
                "name": "",
                "priority": 0,
                "providerId": ""
            })
        ),
        "resetCredentialsFlow": "",
        "resetPasswordAllowed": false,
        "revokeRefreshToken": false,
        "roles": json!({
            "client": json!({}),
            "realm": (
                json!({
                    "attributes": json!({}),
                    "clientRole": false,
                    "composite": false,
                    "composites": json!({
                        "client": json!({}),
                        "realm": ()
                    }),
                    "containerId": "",
                    "description": "",
                    "id": "",
                    "name": ""
                })
            )
        }),
        "scopeMappings": (
            json!({
                "client": "",
                "clientScope": "",
                "roles": (),
                "self": ""
            })
        ),
        "smtpServer": json!({}),
        "sslRequired": "",
        "ssoSessionIdleTimeout": 0,
        "ssoSessionIdleTimeoutRememberMe": 0,
        "ssoSessionMaxLifespan": 0,
        "ssoSessionMaxLifespanRememberMe": 0,
        "supportedLocales": (),
        "userFederationMappers": (
            json!({
                "config": json!({}),
                "federationMapperType": "",
                "federationProviderDisplayName": "",
                "id": "",
                "name": ""
            })
        ),
        "userFederationProviders": (
            json!({
                "changedSyncPeriod": 0,
                "config": json!({}),
                "displayName": "",
                "fullSyncPeriod": 0,
                "id": "",
                "lastSync": 0,
                "priority": 0,
                "providerName": ""
            })
        ),
        "userManagedAccessAllowed": false,
        "users": (json!({})),
        "verifyEmail": false,
        "waitIncrementSeconds": 0,
        "webAuthnPolicyAcceptableAaguids": (),
        "webAuthnPolicyAttestationConveyancePreference": "",
        "webAuthnPolicyAuthenticatorAttachment": "",
        "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
        "webAuthnPolicyCreateTimeout": 0,
        "webAuthnPolicyPasswordlessAcceptableAaguids": (),
        "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
        "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
        "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
        "webAuthnPolicyPasswordlessCreateTimeout": 0,
        "webAuthnPolicyPasswordlessRequireResidentKey": "",
        "webAuthnPolicyPasswordlessRpEntityName": "",
        "webAuthnPolicyPasswordlessRpId": "",
        "webAuthnPolicyPasswordlessSignatureAlgorithms": (),
        "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
        "webAuthnPolicyRequireResidentKey": "",
        "webAuthnPolicyRpEntityName": "",
        "webAuthnPolicyRpId": "",
        "webAuthnPolicySignatureAlgorithms": (),
        "webAuthnPolicyUserVerificationRequirement": ""
    });

    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}}/ \
  --header 'content-type: application/json' \
  --data '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}'
echo '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}' |  \
  http POST {{baseUrl}}/ \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accessCodeLifespan": 0,\n  "accessCodeLifespanLogin": 0,\n  "accessCodeLifespanUserAction": 0,\n  "accessTokenLifespan": 0,\n  "accessTokenLifespanForImplicitFlow": 0,\n  "accountTheme": "",\n  "actionTokenGeneratedByAdminLifespan": 0,\n  "actionTokenGeneratedByUserLifespan": 0,\n  "adminEventsDetailsEnabled": false,\n  "adminEventsEnabled": false,\n  "adminTheme": "",\n  "attributes": {},\n  "authenticationFlows": [\n    {\n      "alias": "",\n      "authenticationExecutions": [\n        {\n          "authenticator": "",\n          "authenticatorConfig": "",\n          "authenticatorFlow": false,\n          "autheticatorFlow": false,\n          "flowAlias": "",\n          "priority": 0,\n          "requirement": "",\n          "userSetupAllowed": false\n        }\n      ],\n      "builtIn": false,\n      "description": "",\n      "id": "",\n      "providerId": "",\n      "topLevel": false\n    }\n  ],\n  "authenticatorConfig": [\n    {\n      "alias": "",\n      "config": {},\n      "id": ""\n    }\n  ],\n  "browserFlow": "",\n  "browserSecurityHeaders": {},\n  "bruteForceProtected": false,\n  "clientAuthenticationFlow": "",\n  "clientScopeMappings": {},\n  "clientScopes": [\n    {\n      "attributes": {},\n      "description": "",\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMappers": [\n        {\n          "config": {},\n          "id": "",\n          "name": "",\n          "protocol": "",\n          "protocolMapper": ""\n        }\n      ]\n    }\n  ],\n  "clientSessionIdleTimeout": 0,\n  "clientSessionMaxLifespan": 0,\n  "clients": [\n    {\n      "access": {},\n      "adminUrl": "",\n      "alwaysDisplayInConsole": false,\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "authorizationServicesEnabled": false,\n      "authorizationSettings": {\n        "allowRemoteResourceManagement": false,\n        "clientId": "",\n        "decisionStrategy": "",\n        "id": "",\n        "name": "",\n        "policies": [\n          {\n            "config": {},\n            "decisionStrategy": "",\n            "description": "",\n            "id": "",\n            "logic": "",\n            "name": "",\n            "owner": "",\n            "policies": [],\n            "resources": [],\n            "resourcesData": [\n              {\n                "attributes": {},\n                "displayName": "",\n                "icon_uri": "",\n                "id": "",\n                "name": "",\n                "ownerManagedAccess": false,\n                "scopes": [\n                  {\n                    "displayName": "",\n                    "iconUri": "",\n                    "id": "",\n                    "name": "",\n                    "policies": [],\n                    "resources": []\n                  }\n                ],\n                "type": "",\n                "uris": []\n              }\n            ],\n            "scopes": [],\n            "scopesData": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "policyEnforcementMode": "",\n        "resources": [\n          {}\n        ],\n        "scopes": [\n          {}\n        ]\n      },\n      "baseUrl": "",\n      "bearerOnly": false,\n      "clientAuthenticatorType": "",\n      "clientId": "",\n      "consentRequired": false,\n      "defaultClientScopes": [],\n      "defaultRoles": [],\n      "description": "",\n      "directAccessGrantsEnabled": false,\n      "enabled": false,\n      "frontchannelLogout": false,\n      "fullScopeAllowed": false,\n      "id": "",\n      "implicitFlowEnabled": false,\n      "name": "",\n      "nodeReRegistrationTimeout": 0,\n      "notBefore": 0,\n      "optionalClientScopes": [],\n      "origin": "",\n      "protocol": "",\n      "protocolMappers": [\n        {}\n      ],\n      "publicClient": false,\n      "redirectUris": [],\n      "registeredNodes": {},\n      "registrationAccessToken": "",\n      "rootUrl": "",\n      "secret": "",\n      "serviceAccountsEnabled": false,\n      "standardFlowEnabled": false,\n      "surrogateAuthRequired": false,\n      "webOrigins": []\n    }\n  ],\n  "components": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "defaultDefaultClientScopes": [],\n  "defaultGroups": [],\n  "defaultLocale": "",\n  "defaultOptionalClientScopes": [],\n  "defaultRoles": [],\n  "defaultSignatureAlgorithm": "",\n  "directGrantFlow": "",\n  "displayName": "",\n  "displayNameHtml": "",\n  "dockerAuthenticationFlow": "",\n  "duplicateEmailsAllowed": false,\n  "editUsernameAllowed": false,\n  "emailTheme": "",\n  "enabled": false,\n  "enabledEventTypes": [],\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "failureFactor": 0,\n  "federatedUsers": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "createdDate": 0,\n          "grantedClientScopes": [],\n          "lastUpdatedDate": 0\n        }\n      ],\n      "clientRoles": {},\n      "createdTimestamp": 0,\n      "credentials": [\n        {\n          "createdDate": 0,\n          "credentialData": "",\n          "id": "",\n          "priority": 0,\n          "secretData": "",\n          "temporary": false,\n          "type": "",\n          "userLabel": "",\n          "value": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "email": "",\n      "emailVerified": false,\n      "enabled": false,\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "federationLink": "",\n      "firstName": "",\n      "groups": [],\n      "id": "",\n      "lastName": "",\n      "notBefore": 0,\n      "origin": "",\n      "realmRoles": [],\n      "requiredActions": [],\n      "self": "",\n      "serviceAccountClientId": "",\n      "username": ""\n    }\n  ],\n  "groups": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientRoles": {},\n      "id": "",\n      "name": "",\n      "path": "",\n      "realmRoles": [],\n      "subGroups": []\n    }\n  ],\n  "id": "",\n  "identityProviderMappers": [\n    {\n      "config": {},\n      "id": "",\n      "identityProviderAlias": "",\n      "identityProviderMapper": "",\n      "name": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "addReadTokenRoleOnCreate": false,\n      "alias": "",\n      "config": {},\n      "displayName": "",\n      "enabled": false,\n      "firstBrokerLoginFlowAlias": "",\n      "internalId": "",\n      "linkOnly": false,\n      "postBrokerLoginFlowAlias": "",\n      "providerId": "",\n      "storeToken": false,\n      "trustEmail": false\n    }\n  ],\n  "internationalizationEnabled": false,\n  "keycloakVersion": "",\n  "loginTheme": "",\n  "loginWithEmailAllowed": false,\n  "maxDeltaTimeSeconds": 0,\n  "maxFailureWaitSeconds": 0,\n  "minimumQuickLoginWaitSeconds": 0,\n  "notBefore": 0,\n  "offlineSessionIdleTimeout": 0,\n  "offlineSessionMaxLifespan": 0,\n  "offlineSessionMaxLifespanEnabled": false,\n  "otpPolicyAlgorithm": "",\n  "otpPolicyDigits": 0,\n  "otpPolicyInitialCounter": 0,\n  "otpPolicyLookAheadWindow": 0,\n  "otpPolicyPeriod": 0,\n  "otpPolicyType": "",\n  "otpSupportedApplications": [],\n  "passwordPolicy": "",\n  "permanentLockout": false,\n  "protocolMappers": [\n    {}\n  ],\n  "quickLoginCheckMilliSeconds": 0,\n  "realm": "",\n  "refreshTokenMaxReuse": 0,\n  "registrationAllowed": false,\n  "registrationEmailAsUsername": false,\n  "registrationFlow": "",\n  "rememberMe": false,\n  "requiredActions": [\n    {\n      "alias": "",\n      "config": {},\n      "defaultAction": false,\n      "enabled": false,\n      "name": "",\n      "priority": 0,\n      "providerId": ""\n    }\n  ],\n  "resetCredentialsFlow": "",\n  "resetPasswordAllowed": false,\n  "revokeRefreshToken": false,\n  "roles": {\n    "client": {},\n    "realm": [\n      {\n        "attributes": {},\n        "clientRole": false,\n        "composite": false,\n        "composites": {\n          "client": {},\n          "realm": []\n        },\n        "containerId": "",\n        "description": "",\n        "id": "",\n        "name": ""\n      }\n    ]\n  },\n  "scopeMappings": [\n    {\n      "client": "",\n      "clientScope": "",\n      "roles": [],\n      "self": ""\n    }\n  ],\n  "smtpServer": {},\n  "sslRequired": "",\n  "ssoSessionIdleTimeout": 0,\n  "ssoSessionIdleTimeoutRememberMe": 0,\n  "ssoSessionMaxLifespan": 0,\n  "ssoSessionMaxLifespanRememberMe": 0,\n  "supportedLocales": [],\n  "userFederationMappers": [\n    {\n      "config": {},\n      "federationMapperType": "",\n      "federationProviderDisplayName": "",\n      "id": "",\n      "name": ""\n    }\n  ],\n  "userFederationProviders": [\n    {\n      "changedSyncPeriod": 0,\n      "config": {},\n      "displayName": "",\n      "fullSyncPeriod": 0,\n      "id": "",\n      "lastSync": 0,\n      "priority": 0,\n      "providerName": ""\n    }\n  ],\n  "userManagedAccessAllowed": false,\n  "users": [\n    {}\n  ],\n  "verifyEmail": false,\n  "waitIncrementSeconds": 0,\n  "webAuthnPolicyAcceptableAaguids": [],\n  "webAuthnPolicyAttestationConveyancePreference": "",\n  "webAuthnPolicyAuthenticatorAttachment": "",\n  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessAcceptableAaguids": [],\n  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",\n  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",\n  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyPasswordlessCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessRequireResidentKey": "",\n  "webAuthnPolicyPasswordlessRpEntityName": "",\n  "webAuthnPolicyPasswordlessRpId": "",\n  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],\n  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",\n  "webAuthnPolicyRequireResidentKey": "",\n  "webAuthnPolicyRpEntityName": "",\n  "webAuthnPolicyRpId": "",\n  "webAuthnPolicySignatureAlgorithms": [],\n  "webAuthnPolicyUserVerificationRequirement": ""\n}' \
  --output-document \
  - {{baseUrl}}/
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": [],
  "authenticationFlows": [
    [
      "alias": "",
      "authenticationExecutions": [
        [
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        ]
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    ]
  ],
  "authenticatorConfig": [
    [
      "alias": "",
      "config": [],
      "id": ""
    ]
  ],
  "browserFlow": "",
  "browserSecurityHeaders": [],
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": [],
  "clientScopes": [
    [
      "attributes": [],
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        [
          "config": [],
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        ]
      ]
    ]
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    [
      "access": [],
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": [],
      "authenticationFlowBindingOverrides": [],
      "authorizationServicesEnabled": false,
      "authorizationSettings": [
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          [
            "config": [],
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              [
                "attributes": [],
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  [
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  ]
                ],
                "type": "",
                "uris": []
              ]
            ],
            "scopes": [],
            "scopesData": [[]],
            "type": ""
          ]
        ],
        "policyEnforcementMode": "",
        "resources": [[]],
        "scopes": [[]]
      ],
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [[]],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": [],
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    ]
  ],
  "components": [
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  ],
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    [
      "access": [],
      "attributes": [],
      "clientConsents": [
        [
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        ]
      ],
      "clientRoles": [],
      "createdTimestamp": 0,
      "credentials": [
        [
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        ]
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        [
          "identityProvider": "",
          "userId": "",
          "userName": ""
        ]
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    ]
  ],
  "groups": [
    [
      "access": [],
      "attributes": [],
      "clientRoles": [],
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    ]
  ],
  "id": "",
  "identityProviderMappers": [
    [
      "config": [],
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    ]
  ],
  "identityProviders": [
    [
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": [],
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    ]
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [[]],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    [
      "alias": "",
      "config": [],
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    ]
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": [
    "client": [],
    "realm": [
      [
        "attributes": [],
        "clientRole": false,
        "composite": false,
        "composites": [
          "client": [],
          "realm": []
        ],
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      ]
    ]
  ],
  "scopeMappings": [
    [
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    ]
  ],
  "smtpServer": [],
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    [
      "config": [],
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    ]
  ],
  "userFederationProviders": [
    [
      "changedSyncPeriod": 0,
      "config": [],
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    ]
  ],
  "userManagedAccessAllowed": false,
  "users": [[]],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Partial export of existing realm into a JSON file.
{{baseUrl}}/:realm/partial-export
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/partial-export");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/partial-export")
require "http/client"

url = "{{baseUrl}}/:realm/partial-export"

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}}/:realm/partial-export"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/partial-export");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/partial-export"

	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/:realm/partial-export HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/partial-export")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/partial-export"))
    .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}}/:realm/partial-export")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/partial-export")
  .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}}/:realm/partial-export');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/:realm/partial-export'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/partial-export';
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}}/:realm/partial-export',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/partial-export")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/partial-export',
  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}}/:realm/partial-export'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/partial-export');

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}}/:realm/partial-export'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/partial-export';
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}}/:realm/partial-export"]
                                                       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}}/:realm/partial-export" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/partial-export",
  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}}/:realm/partial-export');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/partial-export');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/partial-export');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/partial-export' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/partial-export' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/partial-export")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/partial-export"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/partial-export"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/partial-export")

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/:realm/partial-export') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/partial-export";

    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}}/:realm/partial-export
http POST {{baseUrl}}/:realm/partial-export
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/partial-export
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/partial-export")! 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 Partial import from a JSON file to an existing realm.
{{baseUrl}}/:realm/partialImport
BODY json

{
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "users": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/partialImport");

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  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/partialImport" {:content-type :json
                                                                 :form-params {:clients [{:access {}
                                                                                          :adminUrl ""
                                                                                          :alwaysDisplayInConsole false
                                                                                          :attributes {}
                                                                                          :authenticationFlowBindingOverrides {}
                                                                                          :authorizationServicesEnabled false
                                                                                          :authorizationSettings {:allowRemoteResourceManagement false
                                                                                                                  :clientId ""
                                                                                                                  :decisionStrategy ""
                                                                                                                  :id ""
                                                                                                                  :name ""
                                                                                                                  :policies [{:config {}
                                                                                                                              :decisionStrategy ""
                                                                                                                              :description ""
                                                                                                                              :id ""
                                                                                                                              :logic ""
                                                                                                                              :name ""
                                                                                                                              :owner ""
                                                                                                                              :policies []
                                                                                                                              :resources []
                                                                                                                              :resourcesData [{:attributes {}
                                                                                                                                               :displayName ""
                                                                                                                                               :icon_uri ""
                                                                                                                                               :id ""
                                                                                                                                               :name ""
                                                                                                                                               :ownerManagedAccess false
                                                                                                                                               :scopes [{:displayName ""
                                                                                                                                                         :iconUri ""
                                                                                                                                                         :id ""
                                                                                                                                                         :name ""
                                                                                                                                                         :policies []
                                                                                                                                                         :resources []}]
                                                                                                                                               :type ""
                                                                                                                                               :uris []}]
                                                                                                                              :scopes []
                                                                                                                              :scopesData [{}]
                                                                                                                              :type ""}]
                                                                                                                  :policyEnforcementMode ""
                                                                                                                  :resources [{}]
                                                                                                                  :scopes [{}]}
                                                                                          :baseUrl ""
                                                                                          :bearerOnly false
                                                                                          :clientAuthenticatorType ""
                                                                                          :clientId ""
                                                                                          :consentRequired false
                                                                                          :defaultClientScopes []
                                                                                          :defaultRoles []
                                                                                          :description ""
                                                                                          :directAccessGrantsEnabled false
                                                                                          :enabled false
                                                                                          :frontchannelLogout false
                                                                                          :fullScopeAllowed false
                                                                                          :id ""
                                                                                          :implicitFlowEnabled false
                                                                                          :name ""
                                                                                          :nodeReRegistrationTimeout 0
                                                                                          :notBefore 0
                                                                                          :optionalClientScopes []
                                                                                          :origin ""
                                                                                          :protocol ""
                                                                                          :protocolMappers [{:config {}
                                                                                                             :id ""
                                                                                                             :name ""
                                                                                                             :protocol ""
                                                                                                             :protocolMapper ""}]
                                                                                          :publicClient false
                                                                                          :redirectUris []
                                                                                          :registeredNodes {}
                                                                                          :registrationAccessToken ""
                                                                                          :rootUrl ""
                                                                                          :secret ""
                                                                                          :serviceAccountsEnabled false
                                                                                          :standardFlowEnabled false
                                                                                          :surrogateAuthRequired false
                                                                                          :webOrigins []}]
                                                                               :groups [{:access {}
                                                                                         :attributes {}
                                                                                         :clientRoles {}
                                                                                         :id ""
                                                                                         :name ""
                                                                                         :path ""
                                                                                         :realmRoles []
                                                                                         :subGroups []}]
                                                                               :identityProviders [{:addReadTokenRoleOnCreate false
                                                                                                    :alias ""
                                                                                                    :config {}
                                                                                                    :displayName ""
                                                                                                    :enabled false
                                                                                                    :firstBrokerLoginFlowAlias ""
                                                                                                    :internalId ""
                                                                                                    :linkOnly false
                                                                                                    :postBrokerLoginFlowAlias ""
                                                                                                    :providerId ""
                                                                                                    :storeToken false
                                                                                                    :trustEmail false}]
                                                                               :ifResourceExists ""
                                                                               :policy ""
                                                                               :roles {:client {}
                                                                                       :realm [{:attributes {}
                                                                                                :clientRole false
                                                                                                :composite false
                                                                                                :composites {:client {}
                                                                                                             :realm []}
                                                                                                :containerId ""
                                                                                                :description ""
                                                                                                :id ""
                                                                                                :name ""}]}
                                                                               :users [{:access {}
                                                                                        :attributes {}
                                                                                        :clientConsents [{:clientId ""
                                                                                                          :createdDate 0
                                                                                                          :grantedClientScopes []
                                                                                                          :lastUpdatedDate 0}]
                                                                                        :clientRoles {}
                                                                                        :createdTimestamp 0
                                                                                        :credentials [{:createdDate 0
                                                                                                       :credentialData ""
                                                                                                       :id ""
                                                                                                       :priority 0
                                                                                                       :secretData ""
                                                                                                       :temporary false
                                                                                                       :type ""
                                                                                                       :userLabel ""
                                                                                                       :value ""}]
                                                                                        :disableableCredentialTypes []
                                                                                        :email ""
                                                                                        :emailVerified false
                                                                                        :enabled false
                                                                                        :federatedIdentities [{:identityProvider ""
                                                                                                               :userId ""
                                                                                                               :userName ""}]
                                                                                        :federationLink ""
                                                                                        :firstName ""
                                                                                        :groups []
                                                                                        :id ""
                                                                                        :lastName ""
                                                                                        :notBefore 0
                                                                                        :origin ""
                                                                                        :realmRoles []
                                                                                        :requiredActions []
                                                                                        :self ""
                                                                                        :serviceAccountClientId ""
                                                                                        :username ""}]}})
require "http/client"

url = "{{baseUrl}}/:realm/partialImport"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/partialImport"),
    Content = new StringContent("{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/partialImport");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/partialImport"

	payload := strings.NewReader("{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/partialImport HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4691

{
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "users": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/partialImport")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/partialImport"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/partialImport")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/partialImport")
  .header("content-type", "application/json")
  .body("{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [
                  {
                    displayName: '',
                    iconUri: '',
                    id: '',
                    name: '',
                    policies: [],
                    resources: []
                  }
                ],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [
              {}
            ],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [
          {}
        ],
        scopes: [
          {}
        ]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [
        {
          config: {},
          id: '',
          name: '',
          protocol: '',
          protocolMapper: ''
        }
      ],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  ifResourceExists: '',
  policy: '',
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {
          client: {},
          realm: []
        },
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  users: [
    {
      access: {},
      attributes: {},
      clientConsents: [
        {
          clientId: '',
          createdDate: 0,
          grantedClientScopes: [],
          lastUpdatedDate: 0
        }
      ],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/partialImport');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/partialImport',
  headers: {'content-type': 'application/json'},
  data: {
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    ifResourceExists: '',
    policy: '',
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    users: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/partialImport';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"clients":[{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}],"groups":[{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}],"identityProviders":[{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}],"ifResourceExists":"","policy":"","roles":{"client":{},"realm":[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]},"users":[{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}]}'
};

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}}/:realm/partialImport',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "clients": [\n    {\n      "access": {},\n      "adminUrl": "",\n      "alwaysDisplayInConsole": false,\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "authorizationServicesEnabled": false,\n      "authorizationSettings": {\n        "allowRemoteResourceManagement": false,\n        "clientId": "",\n        "decisionStrategy": "",\n        "id": "",\n        "name": "",\n        "policies": [\n          {\n            "config": {},\n            "decisionStrategy": "",\n            "description": "",\n            "id": "",\n            "logic": "",\n            "name": "",\n            "owner": "",\n            "policies": [],\n            "resources": [],\n            "resourcesData": [\n              {\n                "attributes": {},\n                "displayName": "",\n                "icon_uri": "",\n                "id": "",\n                "name": "",\n                "ownerManagedAccess": false,\n                "scopes": [\n                  {\n                    "displayName": "",\n                    "iconUri": "",\n                    "id": "",\n                    "name": "",\n                    "policies": [],\n                    "resources": []\n                  }\n                ],\n                "type": "",\n                "uris": []\n              }\n            ],\n            "scopes": [],\n            "scopesData": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "policyEnforcementMode": "",\n        "resources": [\n          {}\n        ],\n        "scopes": [\n          {}\n        ]\n      },\n      "baseUrl": "",\n      "bearerOnly": false,\n      "clientAuthenticatorType": "",\n      "clientId": "",\n      "consentRequired": false,\n      "defaultClientScopes": [],\n      "defaultRoles": [],\n      "description": "",\n      "directAccessGrantsEnabled": false,\n      "enabled": false,\n      "frontchannelLogout": false,\n      "fullScopeAllowed": false,\n      "id": "",\n      "implicitFlowEnabled": false,\n      "name": "",\n      "nodeReRegistrationTimeout": 0,\n      "notBefore": 0,\n      "optionalClientScopes": [],\n      "origin": "",\n      "protocol": "",\n      "protocolMappers": [\n        {\n          "config": {},\n          "id": "",\n          "name": "",\n          "protocol": "",\n          "protocolMapper": ""\n        }\n      ],\n      "publicClient": false,\n      "redirectUris": [],\n      "registeredNodes": {},\n      "registrationAccessToken": "",\n      "rootUrl": "",\n      "secret": "",\n      "serviceAccountsEnabled": false,\n      "standardFlowEnabled": false,\n      "surrogateAuthRequired": false,\n      "webOrigins": []\n    }\n  ],\n  "groups": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientRoles": {},\n      "id": "",\n      "name": "",\n      "path": "",\n      "realmRoles": [],\n      "subGroups": []\n    }\n  ],\n  "identityProviders": [\n    {\n      "addReadTokenRoleOnCreate": false,\n      "alias": "",\n      "config": {},\n      "displayName": "",\n      "enabled": false,\n      "firstBrokerLoginFlowAlias": "",\n      "internalId": "",\n      "linkOnly": false,\n      "postBrokerLoginFlowAlias": "",\n      "providerId": "",\n      "storeToken": false,\n      "trustEmail": false\n    }\n  ],\n  "ifResourceExists": "",\n  "policy": "",\n  "roles": {\n    "client": {},\n    "realm": [\n      {\n        "attributes": {},\n        "clientRole": false,\n        "composite": false,\n        "composites": {\n          "client": {},\n          "realm": []\n        },\n        "containerId": "",\n        "description": "",\n        "id": "",\n        "name": ""\n      }\n    ]\n  },\n  "users": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "createdDate": 0,\n          "grantedClientScopes": [],\n          "lastUpdatedDate": 0\n        }\n      ],\n      "clientRoles": {},\n      "createdTimestamp": 0,\n      "credentials": [\n        {\n          "createdDate": 0,\n          "credentialData": "",\n          "id": "",\n          "priority": 0,\n          "secretData": "",\n          "temporary": false,\n          "type": "",\n          "userLabel": "",\n          "value": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "email": "",\n      "emailVerified": false,\n      "enabled": false,\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "federationLink": "",\n      "firstName": "",\n      "groups": [],\n      "id": "",\n      "lastName": "",\n      "notBefore": 0,\n      "origin": "",\n      "realmRoles": [],\n      "requiredActions": [],\n      "self": "",\n      "serviceAccountClientId": "",\n      "username": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/partialImport")
  .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/:realm/partialImport',
  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({
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [{}],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [{}],
        scopes: [{}]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  ifResourceExists: '',
  policy: '',
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {client: {}, realm: []},
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  users: [
    {
      access: {},
      attributes: {},
      clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/partialImport',
  headers: {'content-type': 'application/json'},
  body: {
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    ifResourceExists: '',
    policy: '',
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    users: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ]
  },
  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}}/:realm/partialImport');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [
                  {
                    displayName: '',
                    iconUri: '',
                    id: '',
                    name: '',
                    policies: [],
                    resources: []
                  }
                ],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [
              {}
            ],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [
          {}
        ],
        scopes: [
          {}
        ]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [
        {
          config: {},
          id: '',
          name: '',
          protocol: '',
          protocolMapper: ''
        }
      ],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  ifResourceExists: '',
  policy: '',
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {
          client: {},
          realm: []
        },
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  users: [
    {
      access: {},
      attributes: {},
      clientConsents: [
        {
          clientId: '',
          createdDate: 0,
          grantedClientScopes: [],
          lastUpdatedDate: 0
        }
      ],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ]
});

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}}/:realm/partialImport',
  headers: {'content-type': 'application/json'},
  data: {
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    ifResourceExists: '',
    policy: '',
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    users: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/partialImport';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"clients":[{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}],"groups":[{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}],"identityProviders":[{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}],"ifResourceExists":"","policy":"","roles":{"client":{},"realm":[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]},"users":[{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}]}'
};

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 = @{ @"clients": @[ @{ @"access": @{  }, @"adminUrl": @"", @"alwaysDisplayInConsole": @NO, @"attributes": @{  }, @"authenticationFlowBindingOverrides": @{  }, @"authorizationServicesEnabled": @NO, @"authorizationSettings": @{ @"allowRemoteResourceManagement": @NO, @"clientId": @"", @"decisionStrategy": @"", @"id": @"", @"name": @"", @"policies": @[ @{ @"config": @{  }, @"decisionStrategy": @"", @"description": @"", @"id": @"", @"logic": @"", @"name": @"", @"owner": @"", @"policies": @[  ], @"resources": @[  ], @"resourcesData": @[ @{ @"attributes": @{  }, @"displayName": @"", @"icon_uri": @"", @"id": @"", @"name": @"", @"ownerManagedAccess": @NO, @"scopes": @[ @{ @"displayName": @"", @"iconUri": @"", @"id": @"", @"name": @"", @"policies": @[  ], @"resources": @[  ] } ], @"type": @"", @"uris": @[  ] } ], @"scopes": @[  ], @"scopesData": @[ @{  } ], @"type": @"" } ], @"policyEnforcementMode": @"", @"resources": @[ @{  } ], @"scopes": @[ @{  } ] }, @"baseUrl": @"", @"bearerOnly": @NO, @"clientAuthenticatorType": @"", @"clientId": @"", @"consentRequired": @NO, @"defaultClientScopes": @[  ], @"defaultRoles": @[  ], @"description": @"", @"directAccessGrantsEnabled": @NO, @"enabled": @NO, @"frontchannelLogout": @NO, @"fullScopeAllowed": @NO, @"id": @"", @"implicitFlowEnabled": @NO, @"name": @"", @"nodeReRegistrationTimeout": @0, @"notBefore": @0, @"optionalClientScopes": @[  ], @"origin": @"", @"protocol": @"", @"protocolMappers": @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ], @"publicClient": @NO, @"redirectUris": @[  ], @"registeredNodes": @{  }, @"registrationAccessToken": @"", @"rootUrl": @"", @"secret": @"", @"serviceAccountsEnabled": @NO, @"standardFlowEnabled": @NO, @"surrogateAuthRequired": @NO, @"webOrigins": @[  ] } ],
                              @"groups": @[ @{ @"access": @{  }, @"attributes": @{  }, @"clientRoles": @{  }, @"id": @"", @"name": @"", @"path": @"", @"realmRoles": @[  ], @"subGroups": @[  ] } ],
                              @"identityProviders": @[ @{ @"addReadTokenRoleOnCreate": @NO, @"alias": @"", @"config": @{  }, @"displayName": @"", @"enabled": @NO, @"firstBrokerLoginFlowAlias": @"", @"internalId": @"", @"linkOnly": @NO, @"postBrokerLoginFlowAlias": @"", @"providerId": @"", @"storeToken": @NO, @"trustEmail": @NO } ],
                              @"ifResourceExists": @"",
                              @"policy": @"",
                              @"roles": @{ @"client": @{  }, @"realm": @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ] },
                              @"users": @[ @{ @"access": @{  }, @"attributes": @{  }, @"clientConsents": @[ @{ @"clientId": @"", @"createdDate": @0, @"grantedClientScopes": @[  ], @"lastUpdatedDate": @0 } ], @"clientRoles": @{  }, @"createdTimestamp": @0, @"credentials": @[ @{ @"createdDate": @0, @"credentialData": @"", @"id": @"", @"priority": @0, @"secretData": @"", @"temporary": @NO, @"type": @"", @"userLabel": @"", @"value": @"" } ], @"disableableCredentialTypes": @[  ], @"email": @"", @"emailVerified": @NO, @"enabled": @NO, @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ], @"federationLink": @"", @"firstName": @"", @"groups": @[  ], @"id": @"", @"lastName": @"", @"notBefore": @0, @"origin": @"", @"realmRoles": @[  ], @"requiredActions": @[  ], @"self": @"", @"serviceAccountClientId": @"", @"username": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/partialImport"]
                                                       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}}/:realm/partialImport" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/partialImport",
  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([
    'clients' => [
        [
                'access' => [
                                
                ],
                'adminUrl' => '',
                'alwaysDisplayInConsole' => null,
                'attributes' => [
                                
                ],
                'authenticationFlowBindingOverrides' => [
                                
                ],
                'authorizationServicesEnabled' => null,
                'authorizationSettings' => [
                                'allowRemoteResourceManagement' => null,
                                'clientId' => '',
                                'decisionStrategy' => '',
                                'id' => '',
                                'name' => '',
                                'policies' => [
                                                                [
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'description' => '',
                                                                                                                                'id' => '',
                                                                                                                                'logic' => '',
                                                                                                                                'name' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'policyEnforcementMode' => '',
                                'resources' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'scopes' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'baseUrl' => '',
                'bearerOnly' => null,
                'clientAuthenticatorType' => '',
                'clientId' => '',
                'consentRequired' => null,
                'defaultClientScopes' => [
                                
                ],
                'defaultRoles' => [
                                
                ],
                'description' => '',
                'directAccessGrantsEnabled' => null,
                'enabled' => null,
                'frontchannelLogout' => null,
                'fullScopeAllowed' => null,
                'id' => '',
                'implicitFlowEnabled' => null,
                'name' => '',
                'nodeReRegistrationTimeout' => 0,
                'notBefore' => 0,
                'optionalClientScopes' => [
                                
                ],
                'origin' => '',
                'protocol' => '',
                'protocolMappers' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'id' => '',
                                                                'name' => '',
                                                                'protocol' => '',
                                                                'protocolMapper' => ''
                                ]
                ],
                'publicClient' => null,
                'redirectUris' => [
                                
                ],
                'registeredNodes' => [
                                
                ],
                'registrationAccessToken' => '',
                'rootUrl' => '',
                'secret' => '',
                'serviceAccountsEnabled' => null,
                'standardFlowEnabled' => null,
                'surrogateAuthRequired' => null,
                'webOrigins' => [
                                
                ]
        ]
    ],
    'groups' => [
        [
                'access' => [
                                
                ],
                'attributes' => [
                                
                ],
                'clientRoles' => [
                                
                ],
                'id' => '',
                'name' => '',
                'path' => '',
                'realmRoles' => [
                                
                ],
                'subGroups' => [
                                
                ]
        ]
    ],
    'identityProviders' => [
        [
                'addReadTokenRoleOnCreate' => null,
                'alias' => '',
                'config' => [
                                
                ],
                'displayName' => '',
                'enabled' => null,
                'firstBrokerLoginFlowAlias' => '',
                'internalId' => '',
                'linkOnly' => null,
                'postBrokerLoginFlowAlias' => '',
                'providerId' => '',
                'storeToken' => null,
                'trustEmail' => null
        ]
    ],
    'ifResourceExists' => '',
    'policy' => '',
    'roles' => [
        'client' => [
                
        ],
        'realm' => [
                [
                                'attributes' => [
                                                                
                                ],
                                'clientRole' => null,
                                'composite' => null,
                                'composites' => [
                                                                'client' => [
                                                                                                                                
                                                                ],
                                                                'realm' => [
                                                                                                                                
                                                                ]
                                ],
                                'containerId' => '',
                                'description' => '',
                                'id' => '',
                                'name' => ''
                ]
        ]
    ],
    'users' => [
        [
                'access' => [
                                
                ],
                'attributes' => [
                                
                ],
                'clientConsents' => [
                                [
                                                                'clientId' => '',
                                                                'createdDate' => 0,
                                                                'grantedClientScopes' => [
                                                                                                                                
                                                                ],
                                                                'lastUpdatedDate' => 0
                                ]
                ],
                'clientRoles' => [
                                
                ],
                'createdTimestamp' => 0,
                'credentials' => [
                                [
                                                                'createdDate' => 0,
                                                                'credentialData' => '',
                                                                'id' => '',
                                                                'priority' => 0,
                                                                'secretData' => '',
                                                                'temporary' => null,
                                                                'type' => '',
                                                                'userLabel' => '',
                                                                'value' => ''
                                ]
                ],
                'disableableCredentialTypes' => [
                                
                ],
                'email' => '',
                'emailVerified' => null,
                'enabled' => null,
                'federatedIdentities' => [
                                [
                                                                'identityProvider' => '',
                                                                'userId' => '',
                                                                'userName' => ''
                                ]
                ],
                'federationLink' => '',
                'firstName' => '',
                'groups' => [
                                
                ],
                'id' => '',
                'lastName' => '',
                'notBefore' => 0,
                'origin' => '',
                'realmRoles' => [
                                
                ],
                'requiredActions' => [
                                
                ],
                'self' => '',
                'serviceAccountClientId' => '',
                'username' => ''
        ]
    ]
  ]),
  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}}/:realm/partialImport', [
  'body' => '{
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "users": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/partialImport');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'clients' => [
    [
        'access' => [
                
        ],
        'adminUrl' => '',
        'alwaysDisplayInConsole' => null,
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'authorizationServicesEnabled' => null,
        'authorizationSettings' => [
                'allowRemoteResourceManagement' => null,
                'clientId' => '',
                'decisionStrategy' => '',
                'id' => '',
                'name' => '',
                'policies' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'decisionStrategy' => '',
                                                                'description' => '',
                                                                'id' => '',
                                                                'logic' => '',
                                                                'name' => '',
                                                                'owner' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'resourcesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'policyEnforcementMode' => '',
                'resources' => [
                                [
                                                                
                                ]
                ],
                'scopes' => [
                                [
                                                                
                                ]
                ]
        ],
        'baseUrl' => '',
        'bearerOnly' => null,
        'clientAuthenticatorType' => '',
        'clientId' => '',
        'consentRequired' => null,
        'defaultClientScopes' => [
                
        ],
        'defaultRoles' => [
                
        ],
        'description' => '',
        'directAccessGrantsEnabled' => null,
        'enabled' => null,
        'frontchannelLogout' => null,
        'fullScopeAllowed' => null,
        'id' => '',
        'implicitFlowEnabled' => null,
        'name' => '',
        'nodeReRegistrationTimeout' => 0,
        'notBefore' => 0,
        'optionalClientScopes' => [
                
        ],
        'origin' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                'config' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'protocol' => '',
                                'protocolMapper' => ''
                ]
        ],
        'publicClient' => null,
        'redirectUris' => [
                
        ],
        'registeredNodes' => [
                
        ],
        'registrationAccessToken' => '',
        'rootUrl' => '',
        'secret' => '',
        'serviceAccountsEnabled' => null,
        'standardFlowEnabled' => null,
        'surrogateAuthRequired' => null,
        'webOrigins' => [
                
        ]
    ]
  ],
  'groups' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientRoles' => [
                
        ],
        'id' => '',
        'name' => '',
        'path' => '',
        'realmRoles' => [
                
        ],
        'subGroups' => [
                
        ]
    ]
  ],
  'identityProviders' => [
    [
        'addReadTokenRoleOnCreate' => null,
        'alias' => '',
        'config' => [
                
        ],
        'displayName' => '',
        'enabled' => null,
        'firstBrokerLoginFlowAlias' => '',
        'internalId' => '',
        'linkOnly' => null,
        'postBrokerLoginFlowAlias' => '',
        'providerId' => '',
        'storeToken' => null,
        'trustEmail' => null
    ]
  ],
  'ifResourceExists' => '',
  'policy' => '',
  'roles' => [
    'client' => [
        
    ],
    'realm' => [
        [
                'attributes' => [
                                
                ],
                'clientRole' => null,
                'composite' => null,
                'composites' => [
                                'client' => [
                                                                
                                ],
                                'realm' => [
                                                                
                                ]
                ],
                'containerId' => '',
                'description' => '',
                'id' => '',
                'name' => ''
        ]
    ]
  ],
  'users' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'createdDate' => 0,
                                'grantedClientScopes' => [
                                                                
                                ],
                                'lastUpdatedDate' => 0
                ]
        ],
        'clientRoles' => [
                
        ],
        'createdTimestamp' => 0,
        'credentials' => [
                [
                                'createdDate' => 0,
                                'credentialData' => '',
                                'id' => '',
                                'priority' => 0,
                                'secretData' => '',
                                'temporary' => null,
                                'type' => '',
                                'userLabel' => '',
                                'value' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'email' => '',
        'emailVerified' => null,
        'enabled' => null,
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'federationLink' => '',
        'firstName' => '',
        'groups' => [
                
        ],
        'id' => '',
        'lastName' => '',
        'notBefore' => 0,
        'origin' => '',
        'realmRoles' => [
                
        ],
        'requiredActions' => [
                
        ],
        'self' => '',
        'serviceAccountClientId' => '',
        'username' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'clients' => [
    [
        'access' => [
                
        ],
        'adminUrl' => '',
        'alwaysDisplayInConsole' => null,
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'authorizationServicesEnabled' => null,
        'authorizationSettings' => [
                'allowRemoteResourceManagement' => null,
                'clientId' => '',
                'decisionStrategy' => '',
                'id' => '',
                'name' => '',
                'policies' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'decisionStrategy' => '',
                                                                'description' => '',
                                                                'id' => '',
                                                                'logic' => '',
                                                                'name' => '',
                                                                'owner' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'resourcesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'policyEnforcementMode' => '',
                'resources' => [
                                [
                                                                
                                ]
                ],
                'scopes' => [
                                [
                                                                
                                ]
                ]
        ],
        'baseUrl' => '',
        'bearerOnly' => null,
        'clientAuthenticatorType' => '',
        'clientId' => '',
        'consentRequired' => null,
        'defaultClientScopes' => [
                
        ],
        'defaultRoles' => [
                
        ],
        'description' => '',
        'directAccessGrantsEnabled' => null,
        'enabled' => null,
        'frontchannelLogout' => null,
        'fullScopeAllowed' => null,
        'id' => '',
        'implicitFlowEnabled' => null,
        'name' => '',
        'nodeReRegistrationTimeout' => 0,
        'notBefore' => 0,
        'optionalClientScopes' => [
                
        ],
        'origin' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                'config' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'protocol' => '',
                                'protocolMapper' => ''
                ]
        ],
        'publicClient' => null,
        'redirectUris' => [
                
        ],
        'registeredNodes' => [
                
        ],
        'registrationAccessToken' => '',
        'rootUrl' => '',
        'secret' => '',
        'serviceAccountsEnabled' => null,
        'standardFlowEnabled' => null,
        'surrogateAuthRequired' => null,
        'webOrigins' => [
                
        ]
    ]
  ],
  'groups' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientRoles' => [
                
        ],
        'id' => '',
        'name' => '',
        'path' => '',
        'realmRoles' => [
                
        ],
        'subGroups' => [
                
        ]
    ]
  ],
  'identityProviders' => [
    [
        'addReadTokenRoleOnCreate' => null,
        'alias' => '',
        'config' => [
                
        ],
        'displayName' => '',
        'enabled' => null,
        'firstBrokerLoginFlowAlias' => '',
        'internalId' => '',
        'linkOnly' => null,
        'postBrokerLoginFlowAlias' => '',
        'providerId' => '',
        'storeToken' => null,
        'trustEmail' => null
    ]
  ],
  'ifResourceExists' => '',
  'policy' => '',
  'roles' => [
    'client' => [
        
    ],
    'realm' => [
        [
                'attributes' => [
                                
                ],
                'clientRole' => null,
                'composite' => null,
                'composites' => [
                                'client' => [
                                                                
                                ],
                                'realm' => [
                                                                
                                ]
                ],
                'containerId' => '',
                'description' => '',
                'id' => '',
                'name' => ''
        ]
    ]
  ],
  'users' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'createdDate' => 0,
                                'grantedClientScopes' => [
                                                                
                                ],
                                'lastUpdatedDate' => 0
                ]
        ],
        'clientRoles' => [
                
        ],
        'createdTimestamp' => 0,
        'credentials' => [
                [
                                'createdDate' => 0,
                                'credentialData' => '',
                                'id' => '',
                                'priority' => 0,
                                'secretData' => '',
                                'temporary' => null,
                                'type' => '',
                                'userLabel' => '',
                                'value' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'email' => '',
        'emailVerified' => null,
        'enabled' => null,
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'federationLink' => '',
        'firstName' => '',
        'groups' => [
                
        ],
        'id' => '',
        'lastName' => '',
        'notBefore' => 0,
        'origin' => '',
        'realmRoles' => [
                
        ],
        'requiredActions' => [
                
        ],
        'self' => '',
        'serviceAccountClientId' => '',
        'username' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/partialImport');
$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}}/:realm/partialImport' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "users": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/partialImport' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "users": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/partialImport", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/partialImport"

payload = {
    "clients": [
        {
            "access": {},
            "adminUrl": "",
            "alwaysDisplayInConsole": False,
            "attributes": {},
            "authenticationFlowBindingOverrides": {},
            "authorizationServicesEnabled": False,
            "authorizationSettings": {
                "allowRemoteResourceManagement": False,
                "clientId": "",
                "decisionStrategy": "",
                "id": "",
                "name": "",
                "policies": [
                    {
                        "config": {},
                        "decisionStrategy": "",
                        "description": "",
                        "id": "",
                        "logic": "",
                        "name": "",
                        "owner": "",
                        "policies": [],
                        "resources": [],
                        "resourcesData": [
                            {
                                "attributes": {},
                                "displayName": "",
                                "icon_uri": "",
                                "id": "",
                                "name": "",
                                "ownerManagedAccess": False,
                                "scopes": [
                                    {
                                        "displayName": "",
                                        "iconUri": "",
                                        "id": "",
                                        "name": "",
                                        "policies": [],
                                        "resources": []
                                    }
                                ],
                                "type": "",
                                "uris": []
                            }
                        ],
                        "scopes": [],
                        "scopesData": [{}],
                        "type": ""
                    }
                ],
                "policyEnforcementMode": "",
                "resources": [{}],
                "scopes": [{}]
            },
            "baseUrl": "",
            "bearerOnly": False,
            "clientAuthenticatorType": "",
            "clientId": "",
            "consentRequired": False,
            "defaultClientScopes": [],
            "defaultRoles": [],
            "description": "",
            "directAccessGrantsEnabled": False,
            "enabled": False,
            "frontchannelLogout": False,
            "fullScopeAllowed": False,
            "id": "",
            "implicitFlowEnabled": False,
            "name": "",
            "nodeReRegistrationTimeout": 0,
            "notBefore": 0,
            "optionalClientScopes": [],
            "origin": "",
            "protocol": "",
            "protocolMappers": [
                {
                    "config": {},
                    "id": "",
                    "name": "",
                    "protocol": "",
                    "protocolMapper": ""
                }
            ],
            "publicClient": False,
            "redirectUris": [],
            "registeredNodes": {},
            "registrationAccessToken": "",
            "rootUrl": "",
            "secret": "",
            "serviceAccountsEnabled": False,
            "standardFlowEnabled": False,
            "surrogateAuthRequired": False,
            "webOrigins": []
        }
    ],
    "groups": [
        {
            "access": {},
            "attributes": {},
            "clientRoles": {},
            "id": "",
            "name": "",
            "path": "",
            "realmRoles": [],
            "subGroups": []
        }
    ],
    "identityProviders": [
        {
            "addReadTokenRoleOnCreate": False,
            "alias": "",
            "config": {},
            "displayName": "",
            "enabled": False,
            "firstBrokerLoginFlowAlias": "",
            "internalId": "",
            "linkOnly": False,
            "postBrokerLoginFlowAlias": "",
            "providerId": "",
            "storeToken": False,
            "trustEmail": False
        }
    ],
    "ifResourceExists": "",
    "policy": "",
    "roles": {
        "client": {},
        "realm": [
            {
                "attributes": {},
                "clientRole": False,
                "composite": False,
                "composites": {
                    "client": {},
                    "realm": []
                },
                "containerId": "",
                "description": "",
                "id": "",
                "name": ""
            }
        ]
    },
    "users": [
        {
            "access": {},
            "attributes": {},
            "clientConsents": [
                {
                    "clientId": "",
                    "createdDate": 0,
                    "grantedClientScopes": [],
                    "lastUpdatedDate": 0
                }
            ],
            "clientRoles": {},
            "createdTimestamp": 0,
            "credentials": [
                {
                    "createdDate": 0,
                    "credentialData": "",
                    "id": "",
                    "priority": 0,
                    "secretData": "",
                    "temporary": False,
                    "type": "",
                    "userLabel": "",
                    "value": ""
                }
            ],
            "disableableCredentialTypes": [],
            "email": "",
            "emailVerified": False,
            "enabled": False,
            "federatedIdentities": [
                {
                    "identityProvider": "",
                    "userId": "",
                    "userName": ""
                }
            ],
            "federationLink": "",
            "firstName": "",
            "groups": [],
            "id": "",
            "lastName": "",
            "notBefore": 0,
            "origin": "",
            "realmRoles": [],
            "requiredActions": [],
            "self": "",
            "serviceAccountClientId": "",
            "username": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/partialImport"

payload <- "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/partialImport")

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  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/partialImport') do |req|
  req.body = "{\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"ifResourceExists\": \"\",\n  \"policy\": \"\",\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"users\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/partialImport";

    let payload = json!({
        "clients": (
            json!({
                "access": json!({}),
                "adminUrl": "",
                "alwaysDisplayInConsole": false,
                "attributes": json!({}),
                "authenticationFlowBindingOverrides": json!({}),
                "authorizationServicesEnabled": false,
                "authorizationSettings": json!({
                    "allowRemoteResourceManagement": false,
                    "clientId": "",
                    "decisionStrategy": "",
                    "id": "",
                    "name": "",
                    "policies": (
                        json!({
                            "config": json!({}),
                            "decisionStrategy": "",
                            "description": "",
                            "id": "",
                            "logic": "",
                            "name": "",
                            "owner": "",
                            "policies": (),
                            "resources": (),
                            "resourcesData": (
                                json!({
                                    "attributes": json!({}),
                                    "displayName": "",
                                    "icon_uri": "",
                                    "id": "",
                                    "name": "",
                                    "ownerManagedAccess": false,
                                    "scopes": (
                                        json!({
                                            "displayName": "",
                                            "iconUri": "",
                                            "id": "",
                                            "name": "",
                                            "policies": (),
                                            "resources": ()
                                        })
                                    ),
                                    "type": "",
                                    "uris": ()
                                })
                            ),
                            "scopes": (),
                            "scopesData": (json!({})),
                            "type": ""
                        })
                    ),
                    "policyEnforcementMode": "",
                    "resources": (json!({})),
                    "scopes": (json!({}))
                }),
                "baseUrl": "",
                "bearerOnly": false,
                "clientAuthenticatorType": "",
                "clientId": "",
                "consentRequired": false,
                "defaultClientScopes": (),
                "defaultRoles": (),
                "description": "",
                "directAccessGrantsEnabled": false,
                "enabled": false,
                "frontchannelLogout": false,
                "fullScopeAllowed": false,
                "id": "",
                "implicitFlowEnabled": false,
                "name": "",
                "nodeReRegistrationTimeout": 0,
                "notBefore": 0,
                "optionalClientScopes": (),
                "origin": "",
                "protocol": "",
                "protocolMappers": (
                    json!({
                        "config": json!({}),
                        "id": "",
                        "name": "",
                        "protocol": "",
                        "protocolMapper": ""
                    })
                ),
                "publicClient": false,
                "redirectUris": (),
                "registeredNodes": json!({}),
                "registrationAccessToken": "",
                "rootUrl": "",
                "secret": "",
                "serviceAccountsEnabled": false,
                "standardFlowEnabled": false,
                "surrogateAuthRequired": false,
                "webOrigins": ()
            })
        ),
        "groups": (
            json!({
                "access": json!({}),
                "attributes": json!({}),
                "clientRoles": json!({}),
                "id": "",
                "name": "",
                "path": "",
                "realmRoles": (),
                "subGroups": ()
            })
        ),
        "identityProviders": (
            json!({
                "addReadTokenRoleOnCreate": false,
                "alias": "",
                "config": json!({}),
                "displayName": "",
                "enabled": false,
                "firstBrokerLoginFlowAlias": "",
                "internalId": "",
                "linkOnly": false,
                "postBrokerLoginFlowAlias": "",
                "providerId": "",
                "storeToken": false,
                "trustEmail": false
            })
        ),
        "ifResourceExists": "",
        "policy": "",
        "roles": json!({
            "client": json!({}),
            "realm": (
                json!({
                    "attributes": json!({}),
                    "clientRole": false,
                    "composite": false,
                    "composites": json!({
                        "client": json!({}),
                        "realm": ()
                    }),
                    "containerId": "",
                    "description": "",
                    "id": "",
                    "name": ""
                })
            )
        }),
        "users": (
            json!({
                "access": json!({}),
                "attributes": json!({}),
                "clientConsents": (
                    json!({
                        "clientId": "",
                        "createdDate": 0,
                        "grantedClientScopes": (),
                        "lastUpdatedDate": 0
                    })
                ),
                "clientRoles": json!({}),
                "createdTimestamp": 0,
                "credentials": (
                    json!({
                        "createdDate": 0,
                        "credentialData": "",
                        "id": "",
                        "priority": 0,
                        "secretData": "",
                        "temporary": false,
                        "type": "",
                        "userLabel": "",
                        "value": ""
                    })
                ),
                "disableableCredentialTypes": (),
                "email": "",
                "emailVerified": false,
                "enabled": false,
                "federatedIdentities": (
                    json!({
                        "identityProvider": "",
                        "userId": "",
                        "userName": ""
                    })
                ),
                "federationLink": "",
                "firstName": "",
                "groups": (),
                "id": "",
                "lastName": "",
                "notBefore": 0,
                "origin": "",
                "realmRoles": (),
                "requiredActions": (),
                "self": "",
                "serviceAccountClientId": "",
                "username": ""
            })
        )
    });

    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}}/:realm/partialImport \
  --header 'content-type: application/json' \
  --data '{
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "users": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ]
}'
echo '{
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "users": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/:realm/partialImport \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "clients": [\n    {\n      "access": {},\n      "adminUrl": "",\n      "alwaysDisplayInConsole": false,\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "authorizationServicesEnabled": false,\n      "authorizationSettings": {\n        "allowRemoteResourceManagement": false,\n        "clientId": "",\n        "decisionStrategy": "",\n        "id": "",\n        "name": "",\n        "policies": [\n          {\n            "config": {},\n            "decisionStrategy": "",\n            "description": "",\n            "id": "",\n            "logic": "",\n            "name": "",\n            "owner": "",\n            "policies": [],\n            "resources": [],\n            "resourcesData": [\n              {\n                "attributes": {},\n                "displayName": "",\n                "icon_uri": "",\n                "id": "",\n                "name": "",\n                "ownerManagedAccess": false,\n                "scopes": [\n                  {\n                    "displayName": "",\n                    "iconUri": "",\n                    "id": "",\n                    "name": "",\n                    "policies": [],\n                    "resources": []\n                  }\n                ],\n                "type": "",\n                "uris": []\n              }\n            ],\n            "scopes": [],\n            "scopesData": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "policyEnforcementMode": "",\n        "resources": [\n          {}\n        ],\n        "scopes": [\n          {}\n        ]\n      },\n      "baseUrl": "",\n      "bearerOnly": false,\n      "clientAuthenticatorType": "",\n      "clientId": "",\n      "consentRequired": false,\n      "defaultClientScopes": [],\n      "defaultRoles": [],\n      "description": "",\n      "directAccessGrantsEnabled": false,\n      "enabled": false,\n      "frontchannelLogout": false,\n      "fullScopeAllowed": false,\n      "id": "",\n      "implicitFlowEnabled": false,\n      "name": "",\n      "nodeReRegistrationTimeout": 0,\n      "notBefore": 0,\n      "optionalClientScopes": [],\n      "origin": "",\n      "protocol": "",\n      "protocolMappers": [\n        {\n          "config": {},\n          "id": "",\n          "name": "",\n          "protocol": "",\n          "protocolMapper": ""\n        }\n      ],\n      "publicClient": false,\n      "redirectUris": [],\n      "registeredNodes": {},\n      "registrationAccessToken": "",\n      "rootUrl": "",\n      "secret": "",\n      "serviceAccountsEnabled": false,\n      "standardFlowEnabled": false,\n      "surrogateAuthRequired": false,\n      "webOrigins": []\n    }\n  ],\n  "groups": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientRoles": {},\n      "id": "",\n      "name": "",\n      "path": "",\n      "realmRoles": [],\n      "subGroups": []\n    }\n  ],\n  "identityProviders": [\n    {\n      "addReadTokenRoleOnCreate": false,\n      "alias": "",\n      "config": {},\n      "displayName": "",\n      "enabled": false,\n      "firstBrokerLoginFlowAlias": "",\n      "internalId": "",\n      "linkOnly": false,\n      "postBrokerLoginFlowAlias": "",\n      "providerId": "",\n      "storeToken": false,\n      "trustEmail": false\n    }\n  ],\n  "ifResourceExists": "",\n  "policy": "",\n  "roles": {\n    "client": {},\n    "realm": [\n      {\n        "attributes": {},\n        "clientRole": false,\n        "composite": false,\n        "composites": {\n          "client": {},\n          "realm": []\n        },\n        "containerId": "",\n        "description": "",\n        "id": "",\n        "name": ""\n      }\n    ]\n  },\n  "users": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "createdDate": 0,\n          "grantedClientScopes": [],\n          "lastUpdatedDate": 0\n        }\n      ],\n      "clientRoles": {},\n      "createdTimestamp": 0,\n      "credentials": [\n        {\n          "createdDate": 0,\n          "credentialData": "",\n          "id": "",\n          "priority": 0,\n          "secretData": "",\n          "temporary": false,\n          "type": "",\n          "userLabel": "",\n          "value": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "email": "",\n      "emailVerified": false,\n      "enabled": false,\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "federationLink": "",\n      "firstName": "",\n      "groups": [],\n      "id": "",\n      "lastName": "",\n      "notBefore": 0,\n      "origin": "",\n      "realmRoles": [],\n      "requiredActions": [],\n      "self": "",\n      "serviceAccountClientId": "",\n      "username": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/:realm/partialImport
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "clients": [
    [
      "access": [],
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": [],
      "authenticationFlowBindingOverrides": [],
      "authorizationServicesEnabled": false,
      "authorizationSettings": [
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          [
            "config": [],
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              [
                "attributes": [],
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  [
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  ]
                ],
                "type": "",
                "uris": []
              ]
            ],
            "scopes": [],
            "scopesData": [[]],
            "type": ""
          ]
        ],
        "policyEnforcementMode": "",
        "resources": [[]],
        "scopes": [[]]
      ],
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        [
          "config": [],
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        ]
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": [],
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    ]
  ],
  "groups": [
    [
      "access": [],
      "attributes": [],
      "clientRoles": [],
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    ]
  ],
  "identityProviders": [
    [
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": [],
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    ]
  ],
  "ifResourceExists": "",
  "policy": "",
  "roles": [
    "client": [],
    "realm": [
      [
        "attributes": [],
        "clientRole": false,
        "composite": false,
        "composites": [
          "client": [],
          "realm": []
        ],
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      ]
    ]
  ],
  "users": [
    [
      "access": [],
      "attributes": [],
      "clientConsents": [
        [
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        ]
      ],
      "clientRoles": [],
      "createdTimestamp": 0,
      "credentials": [
        [
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        ]
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        [
          "identityProvider": "",
          "userId": "",
          "userName": ""
        ]
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/partialImport")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Push the realm’s revocation policy to any client that has an admin url associated with it.
{{baseUrl}}/:realm/push-revocation
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/push-revocation");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/push-revocation")
require "http/client"

url = "{{baseUrl}}/:realm/push-revocation"

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}}/:realm/push-revocation"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/push-revocation");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/push-revocation"

	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/:realm/push-revocation HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/push-revocation")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/push-revocation"))
    .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}}/:realm/push-revocation")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/push-revocation")
  .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}}/:realm/push-revocation');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/:realm/push-revocation'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/push-revocation';
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}}/:realm/push-revocation',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/push-revocation")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/push-revocation',
  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}}/:realm/push-revocation'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/push-revocation');

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}}/:realm/push-revocation'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/push-revocation';
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}}/:realm/push-revocation"]
                                                       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}}/:realm/push-revocation" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/push-revocation",
  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}}/:realm/push-revocation');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/push-revocation');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/push-revocation');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/push-revocation' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/push-revocation' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/push-revocation")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/push-revocation"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/push-revocation"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/push-revocation")

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/:realm/push-revocation') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/push-revocation";

    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}}/:realm/push-revocation
http POST {{baseUrl}}/:realm/push-revocation
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/push-revocation
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/push-revocation")! 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()
DELETE Remove a specific user session.
{{baseUrl}}/:realm/sessions/:session
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/sessions/:session");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/sessions/:session")
require "http/client"

url = "{{baseUrl}}/:realm/sessions/:session"

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}}/:realm/sessions/:session"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/sessions/:session");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/sessions/:session"

	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/:realm/sessions/:session HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/sessions/:session")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/sessions/:session"))
    .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}}/:realm/sessions/:session")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/sessions/:session")
  .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}}/:realm/sessions/:session');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/sessions/:session'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/sessions/:session';
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}}/:realm/sessions/:session',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/sessions/:session")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/sessions/:session',
  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}}/:realm/sessions/:session'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/sessions/:session');

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}}/:realm/sessions/:session'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/sessions/:session';
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}}/:realm/sessions/:session"]
                                                       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}}/:realm/sessions/:session" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/sessions/:session",
  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}}/:realm/sessions/:session');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/sessions/:session');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/sessions/:session');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/sessions/:session' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/sessions/:session' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/sessions/:session")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/sessions/:session"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/sessions/:session"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/sessions/:session")

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/:realm/sessions/:session') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/sessions/:session";

    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}}/:realm/sessions/:session
http DELETE {{baseUrl}}/:realm/sessions/:session
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/sessions/:session
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/sessions/:session")! 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 Removes all user sessions.
{{baseUrl}}/:realm/logout-all
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/logout-all");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/logout-all")
require "http/client"

url = "{{baseUrl}}/:realm/logout-all"

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}}/:realm/logout-all"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/logout-all");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/logout-all"

	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/:realm/logout-all HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/logout-all")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/logout-all"))
    .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}}/:realm/logout-all")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/logout-all")
  .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}}/:realm/logout-all');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/:realm/logout-all'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/logout-all';
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}}/:realm/logout-all',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/logout-all")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/logout-all',
  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}}/:realm/logout-all'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/logout-all');

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}}/:realm/logout-all'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/logout-all';
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}}/:realm/logout-all"]
                                                       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}}/:realm/logout-all" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/logout-all",
  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}}/:realm/logout-all');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/logout-all');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/logout-all');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/logout-all' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/logout-all' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/logout-all")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/logout-all"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/logout-all"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/logout-all")

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/:realm/logout-all') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/logout-all";

    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}}/:realm/logout-all
http POST {{baseUrl}}/:realm/logout-all
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/logout-all
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/logout-all")! 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 Test LDAP connection
{{baseUrl}}/:realm/testLDAPConnection
BODY json

{
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/testLDAPConnection");

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  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/testLDAPConnection" {:content-type :json
                                                                      :form-params {:action ""
                                                                                    :bindCredential ""
                                                                                    :bindDn ""
                                                                                    :componentId ""
                                                                                    :connectionTimeout ""
                                                                                    :connectionUrl ""
                                                                                    :startTls ""
                                                                                    :useTruststoreSpi ""}})
require "http/client"

url = "{{baseUrl}}/:realm/testLDAPConnection"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\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}}/:realm/testLDAPConnection"),
    Content = new StringContent("{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\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}}/:realm/testLDAPConnection");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/testLDAPConnection"

	payload := strings.NewReader("{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\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/:realm/testLDAPConnection HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 173

{
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/testLDAPConnection")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/testLDAPConnection"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\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  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/testLDAPConnection")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/testLDAPConnection")
  .header("content-type", "application/json")
  .body("{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  action: '',
  bindCredential: '',
  bindDn: '',
  componentId: '',
  connectionTimeout: '',
  connectionUrl: '',
  startTls: '',
  useTruststoreSpi: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/testLDAPConnection');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/testLDAPConnection',
  headers: {'content-type': 'application/json'},
  data: {
    action: '',
    bindCredential: '',
    bindDn: '',
    componentId: '',
    connectionTimeout: '',
    connectionUrl: '',
    startTls: '',
    useTruststoreSpi: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/testLDAPConnection';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"action":"","bindCredential":"","bindDn":"","componentId":"","connectionTimeout":"","connectionUrl":"","startTls":"","useTruststoreSpi":""}'
};

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}}/:realm/testLDAPConnection',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "action": "",\n  "bindCredential": "",\n  "bindDn": "",\n  "componentId": "",\n  "connectionTimeout": "",\n  "connectionUrl": "",\n  "startTls": "",\n  "useTruststoreSpi": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/testLDAPConnection")
  .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/:realm/testLDAPConnection',
  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({
  action: '',
  bindCredential: '',
  bindDn: '',
  componentId: '',
  connectionTimeout: '',
  connectionUrl: '',
  startTls: '',
  useTruststoreSpi: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/testLDAPConnection',
  headers: {'content-type': 'application/json'},
  body: {
    action: '',
    bindCredential: '',
    bindDn: '',
    componentId: '',
    connectionTimeout: '',
    connectionUrl: '',
    startTls: '',
    useTruststoreSpi: ''
  },
  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}}/:realm/testLDAPConnection');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  action: '',
  bindCredential: '',
  bindDn: '',
  componentId: '',
  connectionTimeout: '',
  connectionUrl: '',
  startTls: '',
  useTruststoreSpi: ''
});

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}}/:realm/testLDAPConnection',
  headers: {'content-type': 'application/json'},
  data: {
    action: '',
    bindCredential: '',
    bindDn: '',
    componentId: '',
    connectionTimeout: '',
    connectionUrl: '',
    startTls: '',
    useTruststoreSpi: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/testLDAPConnection';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"action":"","bindCredential":"","bindDn":"","componentId":"","connectionTimeout":"","connectionUrl":"","startTls":"","useTruststoreSpi":""}'
};

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 = @{ @"action": @"",
                              @"bindCredential": @"",
                              @"bindDn": @"",
                              @"componentId": @"",
                              @"connectionTimeout": @"",
                              @"connectionUrl": @"",
                              @"startTls": @"",
                              @"useTruststoreSpi": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/testLDAPConnection"]
                                                       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}}/:realm/testLDAPConnection" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/testLDAPConnection",
  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([
    'action' => '',
    'bindCredential' => '',
    'bindDn' => '',
    'componentId' => '',
    'connectionTimeout' => '',
    'connectionUrl' => '',
    'startTls' => '',
    'useTruststoreSpi' => ''
  ]),
  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}}/:realm/testLDAPConnection', [
  'body' => '{
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/testLDAPConnection');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'action' => '',
  'bindCredential' => '',
  'bindDn' => '',
  'componentId' => '',
  'connectionTimeout' => '',
  'connectionUrl' => '',
  'startTls' => '',
  'useTruststoreSpi' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'action' => '',
  'bindCredential' => '',
  'bindDn' => '',
  'componentId' => '',
  'connectionTimeout' => '',
  'connectionUrl' => '',
  'startTls' => '',
  'useTruststoreSpi' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/testLDAPConnection');
$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}}/:realm/testLDAPConnection' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/testLDAPConnection' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/testLDAPConnection", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/testLDAPConnection"

payload = {
    "action": "",
    "bindCredential": "",
    "bindDn": "",
    "componentId": "",
    "connectionTimeout": "",
    "connectionUrl": "",
    "startTls": "",
    "useTruststoreSpi": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/testLDAPConnection"

payload <- "{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\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}}/:realm/testLDAPConnection")

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  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\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/:realm/testLDAPConnection') do |req|
  req.body = "{\n  \"action\": \"\",\n  \"bindCredential\": \"\",\n  \"bindDn\": \"\",\n  \"componentId\": \"\",\n  \"connectionTimeout\": \"\",\n  \"connectionUrl\": \"\",\n  \"startTls\": \"\",\n  \"useTruststoreSpi\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/testLDAPConnection";

    let payload = json!({
        "action": "",
        "bindCredential": "",
        "bindDn": "",
        "componentId": "",
        "connectionTimeout": "",
        "connectionUrl": "",
        "startTls": "",
        "useTruststoreSpi": ""
    });

    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}}/:realm/testLDAPConnection \
  --header 'content-type: application/json' \
  --data '{
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
}'
echo '{
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
}' |  \
  http POST {{baseUrl}}/:realm/testLDAPConnection \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "action": "",\n  "bindCredential": "",\n  "bindDn": "",\n  "componentId": "",\n  "connectionTimeout": "",\n  "connectionUrl": "",\n  "startTls": "",\n  "useTruststoreSpi": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/testLDAPConnection
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "action": "",
  "bindCredential": "",
  "bindDn": "",
  "componentId": "",
  "connectionTimeout": "",
  "connectionUrl": "",
  "startTls": "",
  "useTruststoreSpi": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/testLDAPConnection")! 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()
PUT Update the events provider Change the events provider and-or its configuration
{{baseUrl}}/:realm/events/config
BODY json

{
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/events/config");

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  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/events/config" {:content-type :json
                                                                :form-params {:adminEventsDetailsEnabled false
                                                                              :adminEventsEnabled false
                                                                              :enabledEventTypes []
                                                                              :eventsEnabled false
                                                                              :eventsExpiration 0
                                                                              :eventsListeners []}})
require "http/client"

url = "{{baseUrl}}/:realm/events/config"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/events/config"),
    Content = new StringContent("{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\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}}/:realm/events/config");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/events/config"

	payload := strings.NewReader("{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/events/config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 174

{
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/events/config")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/events/config"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\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  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/events/config")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/events/config")
  .header("content-type", "application/json")
  .body("{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}")
  .asString();
const data = JSON.stringify({
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/events/config');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/events/config',
  headers: {'content-type': 'application/json'},
  data: {
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/events/config';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"adminEventsDetailsEnabled":false,"adminEventsEnabled":false,"enabledEventTypes":[],"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[]}'
};

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}}/:realm/events/config',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "adminEventsDetailsEnabled": false,\n  "adminEventsEnabled": false,\n  "enabledEventTypes": [],\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/events/config")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/events/config',
  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({
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/events/config',
  headers: {'content-type': 'application/json'},
  body: {
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/events/config');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/events/config',
  headers: {'content-type': 'application/json'},
  data: {
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/events/config';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"adminEventsDetailsEnabled":false,"adminEventsEnabled":false,"enabledEventTypes":[],"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[]}'
};

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 = @{ @"adminEventsDetailsEnabled": @NO,
                              @"adminEventsEnabled": @NO,
                              @"enabledEventTypes": @[  ],
                              @"eventsEnabled": @NO,
                              @"eventsExpiration": @0,
                              @"eventsListeners": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/events/config"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/events/config" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/events/config",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'adminEventsDetailsEnabled' => null,
    'adminEventsEnabled' => null,
    'enabledEventTypes' => [
        
    ],
    'eventsEnabled' => null,
    'eventsExpiration' => 0,
    'eventsListeners' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/events/config', [
  'body' => '{
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/events/config');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'adminEventsDetailsEnabled' => null,
  'adminEventsEnabled' => null,
  'enabledEventTypes' => [
    
  ],
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'adminEventsDetailsEnabled' => null,
  'adminEventsEnabled' => null,
  'enabledEventTypes' => [
    
  ],
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/events/config');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/events/config' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/events/config' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/events/config", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/events/config"

payload = {
    "adminEventsDetailsEnabled": False,
    "adminEventsEnabled": False,
    "enabledEventTypes": [],
    "eventsEnabled": False,
    "eventsExpiration": 0,
    "eventsListeners": []
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/events/config"

payload <- "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/events/config")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/events/config') do |req|
  req.body = "{\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": []\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}}/:realm/events/config";

    let payload = json!({
        "adminEventsDetailsEnabled": false,
        "adminEventsEnabled": false,
        "enabledEventTypes": (),
        "eventsEnabled": false,
        "eventsExpiration": 0,
        "eventsListeners": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/events/config \
  --header 'content-type: application/json' \
  --data '{
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
}'
echo '{
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
}' |  \
  http PUT {{baseUrl}}/:realm/events/config \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "adminEventsDetailsEnabled": false,\n  "adminEventsEnabled": false,\n  "enabledEventTypes": [],\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": []\n}' \
  --output-document \
  - {{baseUrl}}/:realm/events/config
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/events/config")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update the top-level information of the realm Any user, roles or client information in the representation will be ignored.
{{baseUrl}}/:realm
BODY json

{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm");

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  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm" {:content-type :json
                                                  :form-params {:accessCodeLifespan 0
                                                                :accessCodeLifespanLogin 0
                                                                :accessCodeLifespanUserAction 0
                                                                :accessTokenLifespan 0
                                                                :accessTokenLifespanForImplicitFlow 0
                                                                :accountTheme ""
                                                                :actionTokenGeneratedByAdminLifespan 0
                                                                :actionTokenGeneratedByUserLifespan 0
                                                                :adminEventsDetailsEnabled false
                                                                :adminEventsEnabled false
                                                                :adminTheme ""
                                                                :attributes {}
                                                                :authenticationFlows [{:alias ""
                                                                                       :authenticationExecutions [{:authenticator ""
                                                                                                                   :authenticatorConfig ""
                                                                                                                   :authenticatorFlow false
                                                                                                                   :autheticatorFlow false
                                                                                                                   :flowAlias ""
                                                                                                                   :priority 0
                                                                                                                   :requirement ""
                                                                                                                   :userSetupAllowed false}]
                                                                                       :builtIn false
                                                                                       :description ""
                                                                                       :id ""
                                                                                       :providerId ""
                                                                                       :topLevel false}]
                                                                :authenticatorConfig [{:alias ""
                                                                                       :config {}
                                                                                       :id ""}]
                                                                :browserFlow ""
                                                                :browserSecurityHeaders {}
                                                                :bruteForceProtected false
                                                                :clientAuthenticationFlow ""
                                                                :clientScopeMappings {}
                                                                :clientScopes [{:attributes {}
                                                                                :description ""
                                                                                :id ""
                                                                                :name ""
                                                                                :protocol ""
                                                                                :protocolMappers [{:config {}
                                                                                                   :id ""
                                                                                                   :name ""
                                                                                                   :protocol ""
                                                                                                   :protocolMapper ""}]}]
                                                                :clientSessionIdleTimeout 0
                                                                :clientSessionMaxLifespan 0
                                                                :clients [{:access {}
                                                                           :adminUrl ""
                                                                           :alwaysDisplayInConsole false
                                                                           :attributes {}
                                                                           :authenticationFlowBindingOverrides {}
                                                                           :authorizationServicesEnabled false
                                                                           :authorizationSettings {:allowRemoteResourceManagement false
                                                                                                   :clientId ""
                                                                                                   :decisionStrategy ""
                                                                                                   :id ""
                                                                                                   :name ""
                                                                                                   :policies [{:config {}
                                                                                                               :decisionStrategy ""
                                                                                                               :description ""
                                                                                                               :id ""
                                                                                                               :logic ""
                                                                                                               :name ""
                                                                                                               :owner ""
                                                                                                               :policies []
                                                                                                               :resources []
                                                                                                               :resourcesData [{:attributes {}
                                                                                                                                :displayName ""
                                                                                                                                :icon_uri ""
                                                                                                                                :id ""
                                                                                                                                :name ""
                                                                                                                                :ownerManagedAccess false
                                                                                                                                :scopes [{:displayName ""
                                                                                                                                          :iconUri ""
                                                                                                                                          :id ""
                                                                                                                                          :name ""
                                                                                                                                          :policies []
                                                                                                                                          :resources []}]
                                                                                                                                :type ""
                                                                                                                                :uris []}]
                                                                                                               :scopes []
                                                                                                               :scopesData [{}]
                                                                                                               :type ""}]
                                                                                                   :policyEnforcementMode ""
                                                                                                   :resources [{}]
                                                                                                   :scopes [{}]}
                                                                           :baseUrl ""
                                                                           :bearerOnly false
                                                                           :clientAuthenticatorType ""
                                                                           :clientId ""
                                                                           :consentRequired false
                                                                           :defaultClientScopes []
                                                                           :defaultRoles []
                                                                           :description ""
                                                                           :directAccessGrantsEnabled false
                                                                           :enabled false
                                                                           :frontchannelLogout false
                                                                           :fullScopeAllowed false
                                                                           :id ""
                                                                           :implicitFlowEnabled false
                                                                           :name ""
                                                                           :nodeReRegistrationTimeout 0
                                                                           :notBefore 0
                                                                           :optionalClientScopes []
                                                                           :origin ""
                                                                           :protocol ""
                                                                           :protocolMappers [{}]
                                                                           :publicClient false
                                                                           :redirectUris []
                                                                           :registeredNodes {}
                                                                           :registrationAccessToken ""
                                                                           :rootUrl ""
                                                                           :secret ""
                                                                           :serviceAccountsEnabled false
                                                                           :standardFlowEnabled false
                                                                           :surrogateAuthRequired false
                                                                           :webOrigins []}]
                                                                :components {:empty false
                                                                             :loadFactor ""
                                                                             :threshold 0}
                                                                :defaultDefaultClientScopes []
                                                                :defaultGroups []
                                                                :defaultLocale ""
                                                                :defaultOptionalClientScopes []
                                                                :defaultRoles []
                                                                :defaultSignatureAlgorithm ""
                                                                :directGrantFlow ""
                                                                :displayName ""
                                                                :displayNameHtml ""
                                                                :dockerAuthenticationFlow ""
                                                                :duplicateEmailsAllowed false
                                                                :editUsernameAllowed false
                                                                :emailTheme ""
                                                                :enabled false
                                                                :enabledEventTypes []
                                                                :eventsEnabled false
                                                                :eventsExpiration 0
                                                                :eventsListeners []
                                                                :failureFactor 0
                                                                :federatedUsers [{:access {}
                                                                                  :attributes {}
                                                                                  :clientConsents [{:clientId ""
                                                                                                    :createdDate 0
                                                                                                    :grantedClientScopes []
                                                                                                    :lastUpdatedDate 0}]
                                                                                  :clientRoles {}
                                                                                  :createdTimestamp 0
                                                                                  :credentials [{:createdDate 0
                                                                                                 :credentialData ""
                                                                                                 :id ""
                                                                                                 :priority 0
                                                                                                 :secretData ""
                                                                                                 :temporary false
                                                                                                 :type ""
                                                                                                 :userLabel ""
                                                                                                 :value ""}]
                                                                                  :disableableCredentialTypes []
                                                                                  :email ""
                                                                                  :emailVerified false
                                                                                  :enabled false
                                                                                  :federatedIdentities [{:identityProvider ""
                                                                                                         :userId ""
                                                                                                         :userName ""}]
                                                                                  :federationLink ""
                                                                                  :firstName ""
                                                                                  :groups []
                                                                                  :id ""
                                                                                  :lastName ""
                                                                                  :notBefore 0
                                                                                  :origin ""
                                                                                  :realmRoles []
                                                                                  :requiredActions []
                                                                                  :self ""
                                                                                  :serviceAccountClientId ""
                                                                                  :username ""}]
                                                                :groups [{:access {}
                                                                          :attributes {}
                                                                          :clientRoles {}
                                                                          :id ""
                                                                          :name ""
                                                                          :path ""
                                                                          :realmRoles []
                                                                          :subGroups []}]
                                                                :id ""
                                                                :identityProviderMappers [{:config {}
                                                                                           :id ""
                                                                                           :identityProviderAlias ""
                                                                                           :identityProviderMapper ""
                                                                                           :name ""}]
                                                                :identityProviders [{:addReadTokenRoleOnCreate false
                                                                                     :alias ""
                                                                                     :config {}
                                                                                     :displayName ""
                                                                                     :enabled false
                                                                                     :firstBrokerLoginFlowAlias ""
                                                                                     :internalId ""
                                                                                     :linkOnly false
                                                                                     :postBrokerLoginFlowAlias ""
                                                                                     :providerId ""
                                                                                     :storeToken false
                                                                                     :trustEmail false}]
                                                                :internationalizationEnabled false
                                                                :keycloakVersion ""
                                                                :loginTheme ""
                                                                :loginWithEmailAllowed false
                                                                :maxDeltaTimeSeconds 0
                                                                :maxFailureWaitSeconds 0
                                                                :minimumQuickLoginWaitSeconds 0
                                                                :notBefore 0
                                                                :offlineSessionIdleTimeout 0
                                                                :offlineSessionMaxLifespan 0
                                                                :offlineSessionMaxLifespanEnabled false
                                                                :otpPolicyAlgorithm ""
                                                                :otpPolicyDigits 0
                                                                :otpPolicyInitialCounter 0
                                                                :otpPolicyLookAheadWindow 0
                                                                :otpPolicyPeriod 0
                                                                :otpPolicyType ""
                                                                :otpSupportedApplications []
                                                                :passwordPolicy ""
                                                                :permanentLockout false
                                                                :protocolMappers [{}]
                                                                :quickLoginCheckMilliSeconds 0
                                                                :realm ""
                                                                :refreshTokenMaxReuse 0
                                                                :registrationAllowed false
                                                                :registrationEmailAsUsername false
                                                                :registrationFlow ""
                                                                :rememberMe false
                                                                :requiredActions [{:alias ""
                                                                                   :config {}
                                                                                   :defaultAction false
                                                                                   :enabled false
                                                                                   :name ""
                                                                                   :priority 0
                                                                                   :providerId ""}]
                                                                :resetCredentialsFlow ""
                                                                :resetPasswordAllowed false
                                                                :revokeRefreshToken false
                                                                :roles {:client {}
                                                                        :realm [{:attributes {}
                                                                                 :clientRole false
                                                                                 :composite false
                                                                                 :composites {:client {}
                                                                                              :realm []}
                                                                                 :containerId ""
                                                                                 :description ""
                                                                                 :id ""
                                                                                 :name ""}]}
                                                                :scopeMappings [{:client ""
                                                                                 :clientScope ""
                                                                                 :roles []
                                                                                 :self ""}]
                                                                :smtpServer {}
                                                                :sslRequired ""
                                                                :ssoSessionIdleTimeout 0
                                                                :ssoSessionIdleTimeoutRememberMe 0
                                                                :ssoSessionMaxLifespan 0
                                                                :ssoSessionMaxLifespanRememberMe 0
                                                                :supportedLocales []
                                                                :userFederationMappers [{:config {}
                                                                                         :federationMapperType ""
                                                                                         :federationProviderDisplayName ""
                                                                                         :id ""
                                                                                         :name ""}]
                                                                :userFederationProviders [{:changedSyncPeriod 0
                                                                                           :config {}
                                                                                           :displayName ""
                                                                                           :fullSyncPeriod 0
                                                                                           :id ""
                                                                                           :lastSync 0
                                                                                           :priority 0
                                                                                           :providerName ""}]
                                                                :userManagedAccessAllowed false
                                                                :users [{}]
                                                                :verifyEmail false
                                                                :waitIncrementSeconds 0
                                                                :webAuthnPolicyAcceptableAaguids []
                                                                :webAuthnPolicyAttestationConveyancePreference ""
                                                                :webAuthnPolicyAuthenticatorAttachment ""
                                                                :webAuthnPolicyAvoidSameAuthenticatorRegister false
                                                                :webAuthnPolicyCreateTimeout 0
                                                                :webAuthnPolicyPasswordlessAcceptableAaguids []
                                                                :webAuthnPolicyPasswordlessAttestationConveyancePreference ""
                                                                :webAuthnPolicyPasswordlessAuthenticatorAttachment ""
                                                                :webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister false
                                                                :webAuthnPolicyPasswordlessCreateTimeout 0
                                                                :webAuthnPolicyPasswordlessRequireResidentKey ""
                                                                :webAuthnPolicyPasswordlessRpEntityName ""
                                                                :webAuthnPolicyPasswordlessRpId ""
                                                                :webAuthnPolicyPasswordlessSignatureAlgorithms []
                                                                :webAuthnPolicyPasswordlessUserVerificationRequirement ""
                                                                :webAuthnPolicyRequireResidentKey ""
                                                                :webAuthnPolicyRpEntityName ""
                                                                :webAuthnPolicyRpId ""
                                                                :webAuthnPolicySignatureAlgorithms []
                                                                :webAuthnPolicyUserVerificationRequirement ""}})
require "http/client"

url = "{{baseUrl}}/:realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm"),
    Content = new StringContent("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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}}/:realm");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm"

	payload := strings.NewReader("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 9788

{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm")
  .header("content-type", "application/json")
  .body("{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accessCodeLifespan: 0,
  accessCodeLifespanLogin: 0,
  accessCodeLifespanUserAction: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  accountTheme: '',
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  adminTheme: '',
  attributes: {},
  authenticationFlows: [
    {
      alias: '',
      authenticationExecutions: [
        {
          authenticator: '',
          authenticatorConfig: '',
          authenticatorFlow: false,
          autheticatorFlow: false,
          flowAlias: '',
          priority: 0,
          requirement: '',
          userSetupAllowed: false
        }
      ],
      builtIn: false,
      description: '',
      id: '',
      providerId: '',
      topLevel: false
    }
  ],
  authenticatorConfig: [
    {
      alias: '',
      config: {},
      id: ''
    }
  ],
  browserFlow: '',
  browserSecurityHeaders: {},
  bruteForceProtected: false,
  clientAuthenticationFlow: '',
  clientScopeMappings: {},
  clientScopes: [
    {
      attributes: {},
      description: '',
      id: '',
      name: '',
      protocol: '',
      protocolMappers: [
        {
          config: {},
          id: '',
          name: '',
          protocol: '',
          protocolMapper: ''
        }
      ]
    }
  ],
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [
                  {
                    displayName: '',
                    iconUri: '',
                    id: '',
                    name: '',
                    policies: [],
                    resources: []
                  }
                ],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [
              {}
            ],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [
          {}
        ],
        scopes: [
          {}
        ]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [
        {}
      ],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  components: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  defaultDefaultClientScopes: [],
  defaultGroups: [],
  defaultLocale: '',
  defaultOptionalClientScopes: [],
  defaultRoles: [],
  defaultSignatureAlgorithm: '',
  directGrantFlow: '',
  displayName: '',
  displayNameHtml: '',
  dockerAuthenticationFlow: '',
  duplicateEmailsAllowed: false,
  editUsernameAllowed: false,
  emailTheme: '',
  enabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  failureFactor: 0,
  federatedUsers: [
    {
      access: {},
      attributes: {},
      clientConsents: [
        {
          clientId: '',
          createdDate: 0,
          grantedClientScopes: [],
          lastUpdatedDate: 0
        }
      ],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  id: '',
  identityProviderMappers: [
    {
      config: {},
      id: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      name: ''
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  internationalizationEnabled: false,
  keycloakVersion: '',
  loginTheme: '',
  loginWithEmailAllowed: false,
  maxDeltaTimeSeconds: 0,
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  notBefore: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespan: 0,
  offlineSessionMaxLifespanEnabled: false,
  otpPolicyAlgorithm: '',
  otpPolicyDigits: 0,
  otpPolicyInitialCounter: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyType: '',
  otpSupportedApplications: [],
  passwordPolicy: '',
  permanentLockout: false,
  protocolMappers: [
    {}
  ],
  quickLoginCheckMilliSeconds: 0,
  realm: '',
  refreshTokenMaxReuse: 0,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  registrationFlow: '',
  rememberMe: false,
  requiredActions: [
    {
      alias: '',
      config: {},
      defaultAction: false,
      enabled: false,
      name: '',
      priority: 0,
      providerId: ''
    }
  ],
  resetCredentialsFlow: '',
  resetPasswordAllowed: false,
  revokeRefreshToken: false,
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {
          client: {},
          realm: []
        },
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  scopeMappings: [
    {
      client: '',
      clientScope: '',
      roles: [],
      self: ''
    }
  ],
  smtpServer: {},
  sslRequired: '',
  ssoSessionIdleTimeout: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  supportedLocales: [],
  userFederationMappers: [
    {
      config: {},
      federationMapperType: '',
      federationProviderDisplayName: '',
      id: '',
      name: ''
    }
  ],
  userFederationProviders: [
    {
      changedSyncPeriod: 0,
      config: {},
      displayName: '',
      fullSyncPeriod: 0,
      id: '',
      lastSync: 0,
      priority: 0,
      providerName: ''
    }
  ],
  userManagedAccessAllowed: false,
  users: [
    {}
  ],
  verifyEmail: false,
  waitIncrementSeconds: 0,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicyRpId: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyUserVerificationRequirement: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm',
  headers: {'content-type': 'application/json'},
  data: {
    accessCodeLifespan: 0,
    accessCodeLifespanLogin: 0,
    accessCodeLifespanUserAction: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    accountTheme: '',
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    adminTheme: '',
    attributes: {},
    authenticationFlows: [
      {
        alias: '',
        authenticationExecutions: [
          {
            authenticator: '',
            authenticatorConfig: '',
            authenticatorFlow: false,
            autheticatorFlow: false,
            flowAlias: '',
            priority: 0,
            requirement: '',
            userSetupAllowed: false
          }
        ],
        builtIn: false,
        description: '',
        id: '',
        providerId: '',
        topLevel: false
      }
    ],
    authenticatorConfig: [{alias: '', config: {}, id: ''}],
    browserFlow: '',
    browserSecurityHeaders: {},
    bruteForceProtected: false,
    clientAuthenticationFlow: '',
    clientScopeMappings: {},
    clientScopes: [
      {
        attributes: {},
        description: '',
        id: '',
        name: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
      }
    ],
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    components: {empty: false, loadFactor: '', threshold: 0},
    defaultDefaultClientScopes: [],
    defaultGroups: [],
    defaultLocale: '',
    defaultOptionalClientScopes: [],
    defaultRoles: [],
    defaultSignatureAlgorithm: '',
    directGrantFlow: '',
    displayName: '',
    displayNameHtml: '',
    dockerAuthenticationFlow: '',
    duplicateEmailsAllowed: false,
    editUsernameAllowed: false,
    emailTheme: '',
    enabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    failureFactor: 0,
    federatedUsers: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    id: '',
    identityProviderMappers: [
      {
        config: {},
        id: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        name: ''
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    internationalizationEnabled: false,
    keycloakVersion: '',
    loginTheme: '',
    loginWithEmailAllowed: false,
    maxDeltaTimeSeconds: 0,
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    notBefore: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespan: 0,
    offlineSessionMaxLifespanEnabled: false,
    otpPolicyAlgorithm: '',
    otpPolicyDigits: 0,
    otpPolicyInitialCounter: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyType: '',
    otpSupportedApplications: [],
    passwordPolicy: '',
    permanentLockout: false,
    protocolMappers: [{}],
    quickLoginCheckMilliSeconds: 0,
    realm: '',
    refreshTokenMaxReuse: 0,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    registrationFlow: '',
    rememberMe: false,
    requiredActions: [
      {
        alias: '',
        config: {},
        defaultAction: false,
        enabled: false,
        name: '',
        priority: 0,
        providerId: ''
      }
    ],
    resetCredentialsFlow: '',
    resetPasswordAllowed: false,
    revokeRefreshToken: false,
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
    smtpServer: {},
    sslRequired: '',
    ssoSessionIdleTimeout: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    supportedLocales: [],
    userFederationMappers: [
      {
        config: {},
        federationMapperType: '',
        federationProviderDisplayName: '',
        id: '',
        name: ''
      }
    ],
    userFederationProviders: [
      {
        changedSyncPeriod: 0,
        config: {},
        displayName: '',
        fullSyncPeriod: 0,
        id: '',
        lastSync: 0,
        priority: 0,
        providerName: ''
      }
    ],
    userManagedAccessAllowed: false,
    users: [{}],
    verifyEmail: false,
    waitIncrementSeconds: 0,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicyRpId: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyUserVerificationRequirement: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accessCodeLifespan":0,"accessCodeLifespanLogin":0,"accessCodeLifespanUserAction":0,"accessTokenLifespan":0,"accessTokenLifespanForImplicitFlow":0,"accountTheme":"","actionTokenGeneratedByAdminLifespan":0,"actionTokenGeneratedByUserLifespan":0,"adminEventsDetailsEnabled":false,"adminEventsEnabled":false,"adminTheme":"","attributes":{},"authenticationFlows":[{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}],"authenticatorConfig":[{"alias":"","config":{},"id":""}],"browserFlow":"","browserSecurityHeaders":{},"bruteForceProtected":false,"clientAuthenticationFlow":"","clientScopeMappings":{},"clientScopes":[{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}],"clientSessionIdleTimeout":0,"clientSessionMaxLifespan":0,"clients":[{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}],"components":{"empty":false,"loadFactor":"","threshold":0},"defaultDefaultClientScopes":[],"defaultGroups":[],"defaultLocale":"","defaultOptionalClientScopes":[],"defaultRoles":[],"defaultSignatureAlgorithm":"","directGrantFlow":"","displayName":"","displayNameHtml":"","dockerAuthenticationFlow":"","duplicateEmailsAllowed":false,"editUsernameAllowed":false,"emailTheme":"","enabled":false,"enabledEventTypes":[],"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"failureFactor":0,"federatedUsers":[{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}],"groups":[{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}],"id":"","identityProviderMappers":[{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}],"identityProviders":[{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}],"internationalizationEnabled":false,"keycloakVersion":"","loginTheme":"","loginWithEmailAllowed":false,"maxDeltaTimeSeconds":0,"maxFailureWaitSeconds":0,"minimumQuickLoginWaitSeconds":0,"notBefore":0,"offlineSessionIdleTimeout":0,"offlineSessionMaxLifespan":0,"offlineSessionMaxLifespanEnabled":false,"otpPolicyAlgorithm":"","otpPolicyDigits":0,"otpPolicyInitialCounter":0,"otpPolicyLookAheadWindow":0,"otpPolicyPeriod":0,"otpPolicyType":"","otpSupportedApplications":[],"passwordPolicy":"","permanentLockout":false,"protocolMappers":[{}],"quickLoginCheckMilliSeconds":0,"realm":"","refreshTokenMaxReuse":0,"registrationAllowed":false,"registrationEmailAsUsername":false,"registrationFlow":"","rememberMe":false,"requiredActions":[{"alias":"","config":{},"defaultAction":false,"enabled":false,"name":"","priority":0,"providerId":""}],"resetCredentialsFlow":"","resetPasswordAllowed":false,"revokeRefreshToken":false,"roles":{"client":{},"realm":[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]},"scopeMappings":[{"client":"","clientScope":"","roles":[],"self":""}],"smtpServer":{},"sslRequired":"","ssoSessionIdleTimeout":0,"ssoSessionIdleTimeoutRememberMe":0,"ssoSessionMaxLifespan":0,"ssoSessionMaxLifespanRememberMe":0,"supportedLocales":[],"userFederationMappers":[{"config":{},"federationMapperType":"","federationProviderDisplayName":"","id":"","name":""}],"userFederationProviders":[{"changedSyncPeriod":0,"config":{},"displayName":"","fullSyncPeriod":0,"id":"","lastSync":0,"priority":0,"providerName":""}],"userManagedAccessAllowed":false,"users":[{}],"verifyEmail":false,"waitIncrementSeconds":0,"webAuthnPolicyAcceptableAaguids":[],"webAuthnPolicyAttestationConveyancePreference":"","webAuthnPolicyAuthenticatorAttachment":"","webAuthnPolicyAvoidSameAuthenticatorRegister":false,"webAuthnPolicyCreateTimeout":0,"webAuthnPolicyPasswordlessAcceptableAaguids":[],"webAuthnPolicyPasswordlessAttestationConveyancePreference":"","webAuthnPolicyPasswordlessAuthenticatorAttachment":"","webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister":false,"webAuthnPolicyPasswordlessCreateTimeout":0,"webAuthnPolicyPasswordlessRequireResidentKey":"","webAuthnPolicyPasswordlessRpEntityName":"","webAuthnPolicyPasswordlessRpId":"","webAuthnPolicyPasswordlessSignatureAlgorithms":[],"webAuthnPolicyPasswordlessUserVerificationRequirement":"","webAuthnPolicyRequireResidentKey":"","webAuthnPolicyRpEntityName":"","webAuthnPolicyRpId":"","webAuthnPolicySignatureAlgorithms":[],"webAuthnPolicyUserVerificationRequirement":""}'
};

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}}/:realm',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accessCodeLifespan": 0,\n  "accessCodeLifespanLogin": 0,\n  "accessCodeLifespanUserAction": 0,\n  "accessTokenLifespan": 0,\n  "accessTokenLifespanForImplicitFlow": 0,\n  "accountTheme": "",\n  "actionTokenGeneratedByAdminLifespan": 0,\n  "actionTokenGeneratedByUserLifespan": 0,\n  "adminEventsDetailsEnabled": false,\n  "adminEventsEnabled": false,\n  "adminTheme": "",\n  "attributes": {},\n  "authenticationFlows": [\n    {\n      "alias": "",\n      "authenticationExecutions": [\n        {\n          "authenticator": "",\n          "authenticatorConfig": "",\n          "authenticatorFlow": false,\n          "autheticatorFlow": false,\n          "flowAlias": "",\n          "priority": 0,\n          "requirement": "",\n          "userSetupAllowed": false\n        }\n      ],\n      "builtIn": false,\n      "description": "",\n      "id": "",\n      "providerId": "",\n      "topLevel": false\n    }\n  ],\n  "authenticatorConfig": [\n    {\n      "alias": "",\n      "config": {},\n      "id": ""\n    }\n  ],\n  "browserFlow": "",\n  "browserSecurityHeaders": {},\n  "bruteForceProtected": false,\n  "clientAuthenticationFlow": "",\n  "clientScopeMappings": {},\n  "clientScopes": [\n    {\n      "attributes": {},\n      "description": "",\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMappers": [\n        {\n          "config": {},\n          "id": "",\n          "name": "",\n          "protocol": "",\n          "protocolMapper": ""\n        }\n      ]\n    }\n  ],\n  "clientSessionIdleTimeout": 0,\n  "clientSessionMaxLifespan": 0,\n  "clients": [\n    {\n      "access": {},\n      "adminUrl": "",\n      "alwaysDisplayInConsole": false,\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "authorizationServicesEnabled": false,\n      "authorizationSettings": {\n        "allowRemoteResourceManagement": false,\n        "clientId": "",\n        "decisionStrategy": "",\n        "id": "",\n        "name": "",\n        "policies": [\n          {\n            "config": {},\n            "decisionStrategy": "",\n            "description": "",\n            "id": "",\n            "logic": "",\n            "name": "",\n            "owner": "",\n            "policies": [],\n            "resources": [],\n            "resourcesData": [\n              {\n                "attributes": {},\n                "displayName": "",\n                "icon_uri": "",\n                "id": "",\n                "name": "",\n                "ownerManagedAccess": false,\n                "scopes": [\n                  {\n                    "displayName": "",\n                    "iconUri": "",\n                    "id": "",\n                    "name": "",\n                    "policies": [],\n                    "resources": []\n                  }\n                ],\n                "type": "",\n                "uris": []\n              }\n            ],\n            "scopes": [],\n            "scopesData": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "policyEnforcementMode": "",\n        "resources": [\n          {}\n        ],\n        "scopes": [\n          {}\n        ]\n      },\n      "baseUrl": "",\n      "bearerOnly": false,\n      "clientAuthenticatorType": "",\n      "clientId": "",\n      "consentRequired": false,\n      "defaultClientScopes": [],\n      "defaultRoles": [],\n      "description": "",\n      "directAccessGrantsEnabled": false,\n      "enabled": false,\n      "frontchannelLogout": false,\n      "fullScopeAllowed": false,\n      "id": "",\n      "implicitFlowEnabled": false,\n      "name": "",\n      "nodeReRegistrationTimeout": 0,\n      "notBefore": 0,\n      "optionalClientScopes": [],\n      "origin": "",\n      "protocol": "",\n      "protocolMappers": [\n        {}\n      ],\n      "publicClient": false,\n      "redirectUris": [],\n      "registeredNodes": {},\n      "registrationAccessToken": "",\n      "rootUrl": "",\n      "secret": "",\n      "serviceAccountsEnabled": false,\n      "standardFlowEnabled": false,\n      "surrogateAuthRequired": false,\n      "webOrigins": []\n    }\n  ],\n  "components": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "defaultDefaultClientScopes": [],\n  "defaultGroups": [],\n  "defaultLocale": "",\n  "defaultOptionalClientScopes": [],\n  "defaultRoles": [],\n  "defaultSignatureAlgorithm": "",\n  "directGrantFlow": "",\n  "displayName": "",\n  "displayNameHtml": "",\n  "dockerAuthenticationFlow": "",\n  "duplicateEmailsAllowed": false,\n  "editUsernameAllowed": false,\n  "emailTheme": "",\n  "enabled": false,\n  "enabledEventTypes": [],\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "failureFactor": 0,\n  "federatedUsers": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "createdDate": 0,\n          "grantedClientScopes": [],\n          "lastUpdatedDate": 0\n        }\n      ],\n      "clientRoles": {},\n      "createdTimestamp": 0,\n      "credentials": [\n        {\n          "createdDate": 0,\n          "credentialData": "",\n          "id": "",\n          "priority": 0,\n          "secretData": "",\n          "temporary": false,\n          "type": "",\n          "userLabel": "",\n          "value": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "email": "",\n      "emailVerified": false,\n      "enabled": false,\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "federationLink": "",\n      "firstName": "",\n      "groups": [],\n      "id": "",\n      "lastName": "",\n      "notBefore": 0,\n      "origin": "",\n      "realmRoles": [],\n      "requiredActions": [],\n      "self": "",\n      "serviceAccountClientId": "",\n      "username": ""\n    }\n  ],\n  "groups": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientRoles": {},\n      "id": "",\n      "name": "",\n      "path": "",\n      "realmRoles": [],\n      "subGroups": []\n    }\n  ],\n  "id": "",\n  "identityProviderMappers": [\n    {\n      "config": {},\n      "id": "",\n      "identityProviderAlias": "",\n      "identityProviderMapper": "",\n      "name": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "addReadTokenRoleOnCreate": false,\n      "alias": "",\n      "config": {},\n      "displayName": "",\n      "enabled": false,\n      "firstBrokerLoginFlowAlias": "",\n      "internalId": "",\n      "linkOnly": false,\n      "postBrokerLoginFlowAlias": "",\n      "providerId": "",\n      "storeToken": false,\n      "trustEmail": false\n    }\n  ],\n  "internationalizationEnabled": false,\n  "keycloakVersion": "",\n  "loginTheme": "",\n  "loginWithEmailAllowed": false,\n  "maxDeltaTimeSeconds": 0,\n  "maxFailureWaitSeconds": 0,\n  "minimumQuickLoginWaitSeconds": 0,\n  "notBefore": 0,\n  "offlineSessionIdleTimeout": 0,\n  "offlineSessionMaxLifespan": 0,\n  "offlineSessionMaxLifespanEnabled": false,\n  "otpPolicyAlgorithm": "",\n  "otpPolicyDigits": 0,\n  "otpPolicyInitialCounter": 0,\n  "otpPolicyLookAheadWindow": 0,\n  "otpPolicyPeriod": 0,\n  "otpPolicyType": "",\n  "otpSupportedApplications": [],\n  "passwordPolicy": "",\n  "permanentLockout": false,\n  "protocolMappers": [\n    {}\n  ],\n  "quickLoginCheckMilliSeconds": 0,\n  "realm": "",\n  "refreshTokenMaxReuse": 0,\n  "registrationAllowed": false,\n  "registrationEmailAsUsername": false,\n  "registrationFlow": "",\n  "rememberMe": false,\n  "requiredActions": [\n    {\n      "alias": "",\n      "config": {},\n      "defaultAction": false,\n      "enabled": false,\n      "name": "",\n      "priority": 0,\n      "providerId": ""\n    }\n  ],\n  "resetCredentialsFlow": "",\n  "resetPasswordAllowed": false,\n  "revokeRefreshToken": false,\n  "roles": {\n    "client": {},\n    "realm": [\n      {\n        "attributes": {},\n        "clientRole": false,\n        "composite": false,\n        "composites": {\n          "client": {},\n          "realm": []\n        },\n        "containerId": "",\n        "description": "",\n        "id": "",\n        "name": ""\n      }\n    ]\n  },\n  "scopeMappings": [\n    {\n      "client": "",\n      "clientScope": "",\n      "roles": [],\n      "self": ""\n    }\n  ],\n  "smtpServer": {},\n  "sslRequired": "",\n  "ssoSessionIdleTimeout": 0,\n  "ssoSessionIdleTimeoutRememberMe": 0,\n  "ssoSessionMaxLifespan": 0,\n  "ssoSessionMaxLifespanRememberMe": 0,\n  "supportedLocales": [],\n  "userFederationMappers": [\n    {\n      "config": {},\n      "federationMapperType": "",\n      "federationProviderDisplayName": "",\n      "id": "",\n      "name": ""\n    }\n  ],\n  "userFederationProviders": [\n    {\n      "changedSyncPeriod": 0,\n      "config": {},\n      "displayName": "",\n      "fullSyncPeriod": 0,\n      "id": "",\n      "lastSync": 0,\n      "priority": 0,\n      "providerName": ""\n    }\n  ],\n  "userManagedAccessAllowed": false,\n  "users": [\n    {}\n  ],\n  "verifyEmail": false,\n  "waitIncrementSeconds": 0,\n  "webAuthnPolicyAcceptableAaguids": [],\n  "webAuthnPolicyAttestationConveyancePreference": "",\n  "webAuthnPolicyAuthenticatorAttachment": "",\n  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessAcceptableAaguids": [],\n  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",\n  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",\n  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyPasswordlessCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessRequireResidentKey": "",\n  "webAuthnPolicyPasswordlessRpEntityName": "",\n  "webAuthnPolicyPasswordlessRpId": "",\n  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],\n  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",\n  "webAuthnPolicyRequireResidentKey": "",\n  "webAuthnPolicyRpEntityName": "",\n  "webAuthnPolicyRpId": "",\n  "webAuthnPolicySignatureAlgorithms": [],\n  "webAuthnPolicyUserVerificationRequirement": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm',
  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({
  accessCodeLifespan: 0,
  accessCodeLifespanLogin: 0,
  accessCodeLifespanUserAction: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  accountTheme: '',
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  adminTheme: '',
  attributes: {},
  authenticationFlows: [
    {
      alias: '',
      authenticationExecutions: [
        {
          authenticator: '',
          authenticatorConfig: '',
          authenticatorFlow: false,
          autheticatorFlow: false,
          flowAlias: '',
          priority: 0,
          requirement: '',
          userSetupAllowed: false
        }
      ],
      builtIn: false,
      description: '',
      id: '',
      providerId: '',
      topLevel: false
    }
  ],
  authenticatorConfig: [{alias: '', config: {}, id: ''}],
  browserFlow: '',
  browserSecurityHeaders: {},
  bruteForceProtected: false,
  clientAuthenticationFlow: '',
  clientScopeMappings: {},
  clientScopes: [
    {
      attributes: {},
      description: '',
      id: '',
      name: '',
      protocol: '',
      protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
    }
  ],
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [{}],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [{}],
        scopes: [{}]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [{}],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  components: {empty: false, loadFactor: '', threshold: 0},
  defaultDefaultClientScopes: [],
  defaultGroups: [],
  defaultLocale: '',
  defaultOptionalClientScopes: [],
  defaultRoles: [],
  defaultSignatureAlgorithm: '',
  directGrantFlow: '',
  displayName: '',
  displayNameHtml: '',
  dockerAuthenticationFlow: '',
  duplicateEmailsAllowed: false,
  editUsernameAllowed: false,
  emailTheme: '',
  enabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  failureFactor: 0,
  federatedUsers: [
    {
      access: {},
      attributes: {},
      clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  id: '',
  identityProviderMappers: [
    {
      config: {},
      id: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      name: ''
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  internationalizationEnabled: false,
  keycloakVersion: '',
  loginTheme: '',
  loginWithEmailAllowed: false,
  maxDeltaTimeSeconds: 0,
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  notBefore: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespan: 0,
  offlineSessionMaxLifespanEnabled: false,
  otpPolicyAlgorithm: '',
  otpPolicyDigits: 0,
  otpPolicyInitialCounter: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyType: '',
  otpSupportedApplications: [],
  passwordPolicy: '',
  permanentLockout: false,
  protocolMappers: [{}],
  quickLoginCheckMilliSeconds: 0,
  realm: '',
  refreshTokenMaxReuse: 0,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  registrationFlow: '',
  rememberMe: false,
  requiredActions: [
    {
      alias: '',
      config: {},
      defaultAction: false,
      enabled: false,
      name: '',
      priority: 0,
      providerId: ''
    }
  ],
  resetCredentialsFlow: '',
  resetPasswordAllowed: false,
  revokeRefreshToken: false,
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {client: {}, realm: []},
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
  smtpServer: {},
  sslRequired: '',
  ssoSessionIdleTimeout: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  supportedLocales: [],
  userFederationMappers: [
    {
      config: {},
      federationMapperType: '',
      federationProviderDisplayName: '',
      id: '',
      name: ''
    }
  ],
  userFederationProviders: [
    {
      changedSyncPeriod: 0,
      config: {},
      displayName: '',
      fullSyncPeriod: 0,
      id: '',
      lastSync: 0,
      priority: 0,
      providerName: ''
    }
  ],
  userManagedAccessAllowed: false,
  users: [{}],
  verifyEmail: false,
  waitIncrementSeconds: 0,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicyRpId: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyUserVerificationRequirement: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm',
  headers: {'content-type': 'application/json'},
  body: {
    accessCodeLifespan: 0,
    accessCodeLifespanLogin: 0,
    accessCodeLifespanUserAction: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    accountTheme: '',
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    adminTheme: '',
    attributes: {},
    authenticationFlows: [
      {
        alias: '',
        authenticationExecutions: [
          {
            authenticator: '',
            authenticatorConfig: '',
            authenticatorFlow: false,
            autheticatorFlow: false,
            flowAlias: '',
            priority: 0,
            requirement: '',
            userSetupAllowed: false
          }
        ],
        builtIn: false,
        description: '',
        id: '',
        providerId: '',
        topLevel: false
      }
    ],
    authenticatorConfig: [{alias: '', config: {}, id: ''}],
    browserFlow: '',
    browserSecurityHeaders: {},
    bruteForceProtected: false,
    clientAuthenticationFlow: '',
    clientScopeMappings: {},
    clientScopes: [
      {
        attributes: {},
        description: '',
        id: '',
        name: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
      }
    ],
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    components: {empty: false, loadFactor: '', threshold: 0},
    defaultDefaultClientScopes: [],
    defaultGroups: [],
    defaultLocale: '',
    defaultOptionalClientScopes: [],
    defaultRoles: [],
    defaultSignatureAlgorithm: '',
    directGrantFlow: '',
    displayName: '',
    displayNameHtml: '',
    dockerAuthenticationFlow: '',
    duplicateEmailsAllowed: false,
    editUsernameAllowed: false,
    emailTheme: '',
    enabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    failureFactor: 0,
    federatedUsers: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    id: '',
    identityProviderMappers: [
      {
        config: {},
        id: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        name: ''
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    internationalizationEnabled: false,
    keycloakVersion: '',
    loginTheme: '',
    loginWithEmailAllowed: false,
    maxDeltaTimeSeconds: 0,
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    notBefore: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespan: 0,
    offlineSessionMaxLifespanEnabled: false,
    otpPolicyAlgorithm: '',
    otpPolicyDigits: 0,
    otpPolicyInitialCounter: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyType: '',
    otpSupportedApplications: [],
    passwordPolicy: '',
    permanentLockout: false,
    protocolMappers: [{}],
    quickLoginCheckMilliSeconds: 0,
    realm: '',
    refreshTokenMaxReuse: 0,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    registrationFlow: '',
    rememberMe: false,
    requiredActions: [
      {
        alias: '',
        config: {},
        defaultAction: false,
        enabled: false,
        name: '',
        priority: 0,
        providerId: ''
      }
    ],
    resetCredentialsFlow: '',
    resetPasswordAllowed: false,
    revokeRefreshToken: false,
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
    smtpServer: {},
    sslRequired: '',
    ssoSessionIdleTimeout: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    supportedLocales: [],
    userFederationMappers: [
      {
        config: {},
        federationMapperType: '',
        federationProviderDisplayName: '',
        id: '',
        name: ''
      }
    ],
    userFederationProviders: [
      {
        changedSyncPeriod: 0,
        config: {},
        displayName: '',
        fullSyncPeriod: 0,
        id: '',
        lastSync: 0,
        priority: 0,
        providerName: ''
      }
    ],
    userManagedAccessAllowed: false,
    users: [{}],
    verifyEmail: false,
    waitIncrementSeconds: 0,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicyRpId: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyUserVerificationRequirement: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accessCodeLifespan: 0,
  accessCodeLifespanLogin: 0,
  accessCodeLifespanUserAction: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  accountTheme: '',
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  adminEventsDetailsEnabled: false,
  adminEventsEnabled: false,
  adminTheme: '',
  attributes: {},
  authenticationFlows: [
    {
      alias: '',
      authenticationExecutions: [
        {
          authenticator: '',
          authenticatorConfig: '',
          authenticatorFlow: false,
          autheticatorFlow: false,
          flowAlias: '',
          priority: 0,
          requirement: '',
          userSetupAllowed: false
        }
      ],
      builtIn: false,
      description: '',
      id: '',
      providerId: '',
      topLevel: false
    }
  ],
  authenticatorConfig: [
    {
      alias: '',
      config: {},
      id: ''
    }
  ],
  browserFlow: '',
  browserSecurityHeaders: {},
  bruteForceProtected: false,
  clientAuthenticationFlow: '',
  clientScopeMappings: {},
  clientScopes: [
    {
      attributes: {},
      description: '',
      id: '',
      name: '',
      protocol: '',
      protocolMappers: [
        {
          config: {},
          id: '',
          name: '',
          protocol: '',
          protocolMapper: ''
        }
      ]
    }
  ],
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clients: [
    {
      access: {},
      adminUrl: '',
      alwaysDisplayInConsole: false,
      attributes: {},
      authenticationFlowBindingOverrides: {},
      authorizationServicesEnabled: false,
      authorizationSettings: {
        allowRemoteResourceManagement: false,
        clientId: '',
        decisionStrategy: '',
        id: '',
        name: '',
        policies: [
          {
            config: {},
            decisionStrategy: '',
            description: '',
            id: '',
            logic: '',
            name: '',
            owner: '',
            policies: [],
            resources: [],
            resourcesData: [
              {
                attributes: {},
                displayName: '',
                icon_uri: '',
                id: '',
                name: '',
                ownerManagedAccess: false,
                scopes: [
                  {
                    displayName: '',
                    iconUri: '',
                    id: '',
                    name: '',
                    policies: [],
                    resources: []
                  }
                ],
                type: '',
                uris: []
              }
            ],
            scopes: [],
            scopesData: [
              {}
            ],
            type: ''
          }
        ],
        policyEnforcementMode: '',
        resources: [
          {}
        ],
        scopes: [
          {}
        ]
      },
      baseUrl: '',
      bearerOnly: false,
      clientAuthenticatorType: '',
      clientId: '',
      consentRequired: false,
      defaultClientScopes: [],
      defaultRoles: [],
      description: '',
      directAccessGrantsEnabled: false,
      enabled: false,
      frontchannelLogout: false,
      fullScopeAllowed: false,
      id: '',
      implicitFlowEnabled: false,
      name: '',
      nodeReRegistrationTimeout: 0,
      notBefore: 0,
      optionalClientScopes: [],
      origin: '',
      protocol: '',
      protocolMappers: [
        {}
      ],
      publicClient: false,
      redirectUris: [],
      registeredNodes: {},
      registrationAccessToken: '',
      rootUrl: '',
      secret: '',
      serviceAccountsEnabled: false,
      standardFlowEnabled: false,
      surrogateAuthRequired: false,
      webOrigins: []
    }
  ],
  components: {
    empty: false,
    loadFactor: '',
    threshold: 0
  },
  defaultDefaultClientScopes: [],
  defaultGroups: [],
  defaultLocale: '',
  defaultOptionalClientScopes: [],
  defaultRoles: [],
  defaultSignatureAlgorithm: '',
  directGrantFlow: '',
  displayName: '',
  displayNameHtml: '',
  dockerAuthenticationFlow: '',
  duplicateEmailsAllowed: false,
  editUsernameAllowed: false,
  emailTheme: '',
  enabled: false,
  enabledEventTypes: [],
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  failureFactor: 0,
  federatedUsers: [
    {
      access: {},
      attributes: {},
      clientConsents: [
        {
          clientId: '',
          createdDate: 0,
          grantedClientScopes: [],
          lastUpdatedDate: 0
        }
      ],
      clientRoles: {},
      createdTimestamp: 0,
      credentials: [
        {
          createdDate: 0,
          credentialData: '',
          id: '',
          priority: 0,
          secretData: '',
          temporary: false,
          type: '',
          userLabel: '',
          value: ''
        }
      ],
      disableableCredentialTypes: [],
      email: '',
      emailVerified: false,
      enabled: false,
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      federationLink: '',
      firstName: '',
      groups: [],
      id: '',
      lastName: '',
      notBefore: 0,
      origin: '',
      realmRoles: [],
      requiredActions: [],
      self: '',
      serviceAccountClientId: '',
      username: ''
    }
  ],
  groups: [
    {
      access: {},
      attributes: {},
      clientRoles: {},
      id: '',
      name: '',
      path: '',
      realmRoles: [],
      subGroups: []
    }
  ],
  id: '',
  identityProviderMappers: [
    {
      config: {},
      id: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      name: ''
    }
  ],
  identityProviders: [
    {
      addReadTokenRoleOnCreate: false,
      alias: '',
      config: {},
      displayName: '',
      enabled: false,
      firstBrokerLoginFlowAlias: '',
      internalId: '',
      linkOnly: false,
      postBrokerLoginFlowAlias: '',
      providerId: '',
      storeToken: false,
      trustEmail: false
    }
  ],
  internationalizationEnabled: false,
  keycloakVersion: '',
  loginTheme: '',
  loginWithEmailAllowed: false,
  maxDeltaTimeSeconds: 0,
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  notBefore: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespan: 0,
  offlineSessionMaxLifespanEnabled: false,
  otpPolicyAlgorithm: '',
  otpPolicyDigits: 0,
  otpPolicyInitialCounter: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyType: '',
  otpSupportedApplications: [],
  passwordPolicy: '',
  permanentLockout: false,
  protocolMappers: [
    {}
  ],
  quickLoginCheckMilliSeconds: 0,
  realm: '',
  refreshTokenMaxReuse: 0,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  registrationFlow: '',
  rememberMe: false,
  requiredActions: [
    {
      alias: '',
      config: {},
      defaultAction: false,
      enabled: false,
      name: '',
      priority: 0,
      providerId: ''
    }
  ],
  resetCredentialsFlow: '',
  resetPasswordAllowed: false,
  revokeRefreshToken: false,
  roles: {
    client: {},
    realm: [
      {
        attributes: {},
        clientRole: false,
        composite: false,
        composites: {
          client: {},
          realm: []
        },
        containerId: '',
        description: '',
        id: '',
        name: ''
      }
    ]
  },
  scopeMappings: [
    {
      client: '',
      clientScope: '',
      roles: [],
      self: ''
    }
  ],
  smtpServer: {},
  sslRequired: '',
  ssoSessionIdleTimeout: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  supportedLocales: [],
  userFederationMappers: [
    {
      config: {},
      federationMapperType: '',
      federationProviderDisplayName: '',
      id: '',
      name: ''
    }
  ],
  userFederationProviders: [
    {
      changedSyncPeriod: 0,
      config: {},
      displayName: '',
      fullSyncPeriod: 0,
      id: '',
      lastSync: 0,
      priority: 0,
      providerName: ''
    }
  ],
  userManagedAccessAllowed: false,
  users: [
    {}
  ],
  verifyEmail: false,
  waitIncrementSeconds: 0,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicyRpId: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyUserVerificationRequirement: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm',
  headers: {'content-type': 'application/json'},
  data: {
    accessCodeLifespan: 0,
    accessCodeLifespanLogin: 0,
    accessCodeLifespanUserAction: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    accountTheme: '',
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    adminEventsDetailsEnabled: false,
    adminEventsEnabled: false,
    adminTheme: '',
    attributes: {},
    authenticationFlows: [
      {
        alias: '',
        authenticationExecutions: [
          {
            authenticator: '',
            authenticatorConfig: '',
            authenticatorFlow: false,
            autheticatorFlow: false,
            flowAlias: '',
            priority: 0,
            requirement: '',
            userSetupAllowed: false
          }
        ],
        builtIn: false,
        description: '',
        id: '',
        providerId: '',
        topLevel: false
      }
    ],
    authenticatorConfig: [{alias: '', config: {}, id: ''}],
    browserFlow: '',
    browserSecurityHeaders: {},
    bruteForceProtected: false,
    clientAuthenticationFlow: '',
    clientScopeMappings: {},
    clientScopes: [
      {
        attributes: {},
        description: '',
        id: '',
        name: '',
        protocol: '',
        protocolMappers: [{config: {}, id: '', name: '', protocol: '', protocolMapper: ''}]
      }
    ],
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clients: [
      {
        access: {},
        adminUrl: '',
        alwaysDisplayInConsole: false,
        attributes: {},
        authenticationFlowBindingOverrides: {},
        authorizationServicesEnabled: false,
        authorizationSettings: {
          allowRemoteResourceManagement: false,
          clientId: '',
          decisionStrategy: '',
          id: '',
          name: '',
          policies: [
            {
              config: {},
              decisionStrategy: '',
              description: '',
              id: '',
              logic: '',
              name: '',
              owner: '',
              policies: [],
              resources: [],
              resourcesData: [
                {
                  attributes: {},
                  displayName: '',
                  icon_uri: '',
                  id: '',
                  name: '',
                  ownerManagedAccess: false,
                  scopes: [{displayName: '', iconUri: '', id: '', name: '', policies: [], resources: []}],
                  type: '',
                  uris: []
                }
              ],
              scopes: [],
              scopesData: [{}],
              type: ''
            }
          ],
          policyEnforcementMode: '',
          resources: [{}],
          scopes: [{}]
        },
        baseUrl: '',
        bearerOnly: false,
        clientAuthenticatorType: '',
        clientId: '',
        consentRequired: false,
        defaultClientScopes: [],
        defaultRoles: [],
        description: '',
        directAccessGrantsEnabled: false,
        enabled: false,
        frontchannelLogout: false,
        fullScopeAllowed: false,
        id: '',
        implicitFlowEnabled: false,
        name: '',
        nodeReRegistrationTimeout: 0,
        notBefore: 0,
        optionalClientScopes: [],
        origin: '',
        protocol: '',
        protocolMappers: [{}],
        publicClient: false,
        redirectUris: [],
        registeredNodes: {},
        registrationAccessToken: '',
        rootUrl: '',
        secret: '',
        serviceAccountsEnabled: false,
        standardFlowEnabled: false,
        surrogateAuthRequired: false,
        webOrigins: []
      }
    ],
    components: {empty: false, loadFactor: '', threshold: 0},
    defaultDefaultClientScopes: [],
    defaultGroups: [],
    defaultLocale: '',
    defaultOptionalClientScopes: [],
    defaultRoles: [],
    defaultSignatureAlgorithm: '',
    directGrantFlow: '',
    displayName: '',
    displayNameHtml: '',
    dockerAuthenticationFlow: '',
    duplicateEmailsAllowed: false,
    editUsernameAllowed: false,
    emailTheme: '',
    enabled: false,
    enabledEventTypes: [],
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    failureFactor: 0,
    federatedUsers: [
      {
        access: {},
        attributes: {},
        clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
        clientRoles: {},
        createdTimestamp: 0,
        credentials: [
          {
            createdDate: 0,
            credentialData: '',
            id: '',
            priority: 0,
            secretData: '',
            temporary: false,
            type: '',
            userLabel: '',
            value: ''
          }
        ],
        disableableCredentialTypes: [],
        email: '',
        emailVerified: false,
        enabled: false,
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        federationLink: '',
        firstName: '',
        groups: [],
        id: '',
        lastName: '',
        notBefore: 0,
        origin: '',
        realmRoles: [],
        requiredActions: [],
        self: '',
        serviceAccountClientId: '',
        username: ''
      }
    ],
    groups: [
      {
        access: {},
        attributes: {},
        clientRoles: {},
        id: '',
        name: '',
        path: '',
        realmRoles: [],
        subGroups: []
      }
    ],
    id: '',
    identityProviderMappers: [
      {
        config: {},
        id: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        name: ''
      }
    ],
    identityProviders: [
      {
        addReadTokenRoleOnCreate: false,
        alias: '',
        config: {},
        displayName: '',
        enabled: false,
        firstBrokerLoginFlowAlias: '',
        internalId: '',
        linkOnly: false,
        postBrokerLoginFlowAlias: '',
        providerId: '',
        storeToken: false,
        trustEmail: false
      }
    ],
    internationalizationEnabled: false,
    keycloakVersion: '',
    loginTheme: '',
    loginWithEmailAllowed: false,
    maxDeltaTimeSeconds: 0,
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    notBefore: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespan: 0,
    offlineSessionMaxLifespanEnabled: false,
    otpPolicyAlgorithm: '',
    otpPolicyDigits: 0,
    otpPolicyInitialCounter: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyType: '',
    otpSupportedApplications: [],
    passwordPolicy: '',
    permanentLockout: false,
    protocolMappers: [{}],
    quickLoginCheckMilliSeconds: 0,
    realm: '',
    refreshTokenMaxReuse: 0,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    registrationFlow: '',
    rememberMe: false,
    requiredActions: [
      {
        alias: '',
        config: {},
        defaultAction: false,
        enabled: false,
        name: '',
        priority: 0,
        providerId: ''
      }
    ],
    resetCredentialsFlow: '',
    resetPasswordAllowed: false,
    revokeRefreshToken: false,
    roles: {
      client: {},
      realm: [
        {
          attributes: {},
          clientRole: false,
          composite: false,
          composites: {client: {}, realm: []},
          containerId: '',
          description: '',
          id: '',
          name: ''
        }
      ]
    },
    scopeMappings: [{client: '', clientScope: '', roles: [], self: ''}],
    smtpServer: {},
    sslRequired: '',
    ssoSessionIdleTimeout: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    supportedLocales: [],
    userFederationMappers: [
      {
        config: {},
        federationMapperType: '',
        federationProviderDisplayName: '',
        id: '',
        name: ''
      }
    ],
    userFederationProviders: [
      {
        changedSyncPeriod: 0,
        config: {},
        displayName: '',
        fullSyncPeriod: 0,
        id: '',
        lastSync: 0,
        priority: 0,
        providerName: ''
      }
    ],
    userManagedAccessAllowed: false,
    users: [{}],
    verifyEmail: false,
    waitIncrementSeconds: 0,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicyRpId: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyUserVerificationRequirement: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accessCodeLifespan":0,"accessCodeLifespanLogin":0,"accessCodeLifespanUserAction":0,"accessTokenLifespan":0,"accessTokenLifespanForImplicitFlow":0,"accountTheme":"","actionTokenGeneratedByAdminLifespan":0,"actionTokenGeneratedByUserLifespan":0,"adminEventsDetailsEnabled":false,"adminEventsEnabled":false,"adminTheme":"","attributes":{},"authenticationFlows":[{"alias":"","authenticationExecutions":[{"authenticator":"","authenticatorConfig":"","authenticatorFlow":false,"autheticatorFlow":false,"flowAlias":"","priority":0,"requirement":"","userSetupAllowed":false}],"builtIn":false,"description":"","id":"","providerId":"","topLevel":false}],"authenticatorConfig":[{"alias":"","config":{},"id":""}],"browserFlow":"","browserSecurityHeaders":{},"bruteForceProtected":false,"clientAuthenticationFlow":"","clientScopeMappings":{},"clientScopes":[{"attributes":{},"description":"","id":"","name":"","protocol":"","protocolMappers":[{"config":{},"id":"","name":"","protocol":"","protocolMapper":""}]}],"clientSessionIdleTimeout":0,"clientSessionMaxLifespan":0,"clients":[{"access":{},"adminUrl":"","alwaysDisplayInConsole":false,"attributes":{},"authenticationFlowBindingOverrides":{},"authorizationServicesEnabled":false,"authorizationSettings":{"allowRemoteResourceManagement":false,"clientId":"","decisionStrategy":"","id":"","name":"","policies":[{"config":{},"decisionStrategy":"","description":"","id":"","logic":"","name":"","owner":"","policies":[],"resources":[],"resourcesData":[{"attributes":{},"displayName":"","icon_uri":"","id":"","name":"","ownerManagedAccess":false,"scopes":[{"displayName":"","iconUri":"","id":"","name":"","policies":[],"resources":[]}],"type":"","uris":[]}],"scopes":[],"scopesData":[{}],"type":""}],"policyEnforcementMode":"","resources":[{}],"scopes":[{}]},"baseUrl":"","bearerOnly":false,"clientAuthenticatorType":"","clientId":"","consentRequired":false,"defaultClientScopes":[],"defaultRoles":[],"description":"","directAccessGrantsEnabled":false,"enabled":false,"frontchannelLogout":false,"fullScopeAllowed":false,"id":"","implicitFlowEnabled":false,"name":"","nodeReRegistrationTimeout":0,"notBefore":0,"optionalClientScopes":[],"origin":"","protocol":"","protocolMappers":[{}],"publicClient":false,"redirectUris":[],"registeredNodes":{},"registrationAccessToken":"","rootUrl":"","secret":"","serviceAccountsEnabled":false,"standardFlowEnabled":false,"surrogateAuthRequired":false,"webOrigins":[]}],"components":{"empty":false,"loadFactor":"","threshold":0},"defaultDefaultClientScopes":[],"defaultGroups":[],"defaultLocale":"","defaultOptionalClientScopes":[],"defaultRoles":[],"defaultSignatureAlgorithm":"","directGrantFlow":"","displayName":"","displayNameHtml":"","dockerAuthenticationFlow":"","duplicateEmailsAllowed":false,"editUsernameAllowed":false,"emailTheme":"","enabled":false,"enabledEventTypes":[],"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"failureFactor":0,"federatedUsers":[{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}],"groups":[{"access":{},"attributes":{},"clientRoles":{},"id":"","name":"","path":"","realmRoles":[],"subGroups":[]}],"id":"","identityProviderMappers":[{"config":{},"id":"","identityProviderAlias":"","identityProviderMapper":"","name":""}],"identityProviders":[{"addReadTokenRoleOnCreate":false,"alias":"","config":{},"displayName":"","enabled":false,"firstBrokerLoginFlowAlias":"","internalId":"","linkOnly":false,"postBrokerLoginFlowAlias":"","providerId":"","storeToken":false,"trustEmail":false}],"internationalizationEnabled":false,"keycloakVersion":"","loginTheme":"","loginWithEmailAllowed":false,"maxDeltaTimeSeconds":0,"maxFailureWaitSeconds":0,"minimumQuickLoginWaitSeconds":0,"notBefore":0,"offlineSessionIdleTimeout":0,"offlineSessionMaxLifespan":0,"offlineSessionMaxLifespanEnabled":false,"otpPolicyAlgorithm":"","otpPolicyDigits":0,"otpPolicyInitialCounter":0,"otpPolicyLookAheadWindow":0,"otpPolicyPeriod":0,"otpPolicyType":"","otpSupportedApplications":[],"passwordPolicy":"","permanentLockout":false,"protocolMappers":[{}],"quickLoginCheckMilliSeconds":0,"realm":"","refreshTokenMaxReuse":0,"registrationAllowed":false,"registrationEmailAsUsername":false,"registrationFlow":"","rememberMe":false,"requiredActions":[{"alias":"","config":{},"defaultAction":false,"enabled":false,"name":"","priority":0,"providerId":""}],"resetCredentialsFlow":"","resetPasswordAllowed":false,"revokeRefreshToken":false,"roles":{"client":{},"realm":[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]},"scopeMappings":[{"client":"","clientScope":"","roles":[],"self":""}],"smtpServer":{},"sslRequired":"","ssoSessionIdleTimeout":0,"ssoSessionIdleTimeoutRememberMe":0,"ssoSessionMaxLifespan":0,"ssoSessionMaxLifespanRememberMe":0,"supportedLocales":[],"userFederationMappers":[{"config":{},"federationMapperType":"","federationProviderDisplayName":"","id":"","name":""}],"userFederationProviders":[{"changedSyncPeriod":0,"config":{},"displayName":"","fullSyncPeriod":0,"id":"","lastSync":0,"priority":0,"providerName":""}],"userManagedAccessAllowed":false,"users":[{}],"verifyEmail":false,"waitIncrementSeconds":0,"webAuthnPolicyAcceptableAaguids":[],"webAuthnPolicyAttestationConveyancePreference":"","webAuthnPolicyAuthenticatorAttachment":"","webAuthnPolicyAvoidSameAuthenticatorRegister":false,"webAuthnPolicyCreateTimeout":0,"webAuthnPolicyPasswordlessAcceptableAaguids":[],"webAuthnPolicyPasswordlessAttestationConveyancePreference":"","webAuthnPolicyPasswordlessAuthenticatorAttachment":"","webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister":false,"webAuthnPolicyPasswordlessCreateTimeout":0,"webAuthnPolicyPasswordlessRequireResidentKey":"","webAuthnPolicyPasswordlessRpEntityName":"","webAuthnPolicyPasswordlessRpId":"","webAuthnPolicyPasswordlessSignatureAlgorithms":[],"webAuthnPolicyPasswordlessUserVerificationRequirement":"","webAuthnPolicyRequireResidentKey":"","webAuthnPolicyRpEntityName":"","webAuthnPolicyRpId":"","webAuthnPolicySignatureAlgorithms":[],"webAuthnPolicyUserVerificationRequirement":""}'
};

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 = @{ @"accessCodeLifespan": @0,
                              @"accessCodeLifespanLogin": @0,
                              @"accessCodeLifespanUserAction": @0,
                              @"accessTokenLifespan": @0,
                              @"accessTokenLifespanForImplicitFlow": @0,
                              @"accountTheme": @"",
                              @"actionTokenGeneratedByAdminLifespan": @0,
                              @"actionTokenGeneratedByUserLifespan": @0,
                              @"adminEventsDetailsEnabled": @NO,
                              @"adminEventsEnabled": @NO,
                              @"adminTheme": @"",
                              @"attributes": @{  },
                              @"authenticationFlows": @[ @{ @"alias": @"", @"authenticationExecutions": @[ @{ @"authenticator": @"", @"authenticatorConfig": @"", @"authenticatorFlow": @NO, @"autheticatorFlow": @NO, @"flowAlias": @"", @"priority": @0, @"requirement": @"", @"userSetupAllowed": @NO } ], @"builtIn": @NO, @"description": @"", @"id": @"", @"providerId": @"", @"topLevel": @NO } ],
                              @"authenticatorConfig": @[ @{ @"alias": @"", @"config": @{  }, @"id": @"" } ],
                              @"browserFlow": @"",
                              @"browserSecurityHeaders": @{  },
                              @"bruteForceProtected": @NO,
                              @"clientAuthenticationFlow": @"",
                              @"clientScopeMappings": @{  },
                              @"clientScopes": @[ @{ @"attributes": @{  }, @"description": @"", @"id": @"", @"name": @"", @"protocol": @"", @"protocolMappers": @[ @{ @"config": @{  }, @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"" } ] } ],
                              @"clientSessionIdleTimeout": @0,
                              @"clientSessionMaxLifespan": @0,
                              @"clients": @[ @{ @"access": @{  }, @"adminUrl": @"", @"alwaysDisplayInConsole": @NO, @"attributes": @{  }, @"authenticationFlowBindingOverrides": @{  }, @"authorizationServicesEnabled": @NO, @"authorizationSettings": @{ @"allowRemoteResourceManagement": @NO, @"clientId": @"", @"decisionStrategy": @"", @"id": @"", @"name": @"", @"policies": @[ @{ @"config": @{  }, @"decisionStrategy": @"", @"description": @"", @"id": @"", @"logic": @"", @"name": @"", @"owner": @"", @"policies": @[  ], @"resources": @[  ], @"resourcesData": @[ @{ @"attributes": @{  }, @"displayName": @"", @"icon_uri": @"", @"id": @"", @"name": @"", @"ownerManagedAccess": @NO, @"scopes": @[ @{ @"displayName": @"", @"iconUri": @"", @"id": @"", @"name": @"", @"policies": @[  ], @"resources": @[  ] } ], @"type": @"", @"uris": @[  ] } ], @"scopes": @[  ], @"scopesData": @[ @{  } ], @"type": @"" } ], @"policyEnforcementMode": @"", @"resources": @[ @{  } ], @"scopes": @[ @{  } ] }, @"baseUrl": @"", @"bearerOnly": @NO, @"clientAuthenticatorType": @"", @"clientId": @"", @"consentRequired": @NO, @"defaultClientScopes": @[  ], @"defaultRoles": @[  ], @"description": @"", @"directAccessGrantsEnabled": @NO, @"enabled": @NO, @"frontchannelLogout": @NO, @"fullScopeAllowed": @NO, @"id": @"", @"implicitFlowEnabled": @NO, @"name": @"", @"nodeReRegistrationTimeout": @0, @"notBefore": @0, @"optionalClientScopes": @[  ], @"origin": @"", @"protocol": @"", @"protocolMappers": @[ @{  } ], @"publicClient": @NO, @"redirectUris": @[  ], @"registeredNodes": @{  }, @"registrationAccessToken": @"", @"rootUrl": @"", @"secret": @"", @"serviceAccountsEnabled": @NO, @"standardFlowEnabled": @NO, @"surrogateAuthRequired": @NO, @"webOrigins": @[  ] } ],
                              @"components": @{ @"empty": @NO, @"loadFactor": @"", @"threshold": @0 },
                              @"defaultDefaultClientScopes": @[  ],
                              @"defaultGroups": @[  ],
                              @"defaultLocale": @"",
                              @"defaultOptionalClientScopes": @[  ],
                              @"defaultRoles": @[  ],
                              @"defaultSignatureAlgorithm": @"",
                              @"directGrantFlow": @"",
                              @"displayName": @"",
                              @"displayNameHtml": @"",
                              @"dockerAuthenticationFlow": @"",
                              @"duplicateEmailsAllowed": @NO,
                              @"editUsernameAllowed": @NO,
                              @"emailTheme": @"",
                              @"enabled": @NO,
                              @"enabledEventTypes": @[  ],
                              @"eventsEnabled": @NO,
                              @"eventsExpiration": @0,
                              @"eventsListeners": @[  ],
                              @"failureFactor": @0,
                              @"federatedUsers": @[ @{ @"access": @{  }, @"attributes": @{  }, @"clientConsents": @[ @{ @"clientId": @"", @"createdDate": @0, @"grantedClientScopes": @[  ], @"lastUpdatedDate": @0 } ], @"clientRoles": @{  }, @"createdTimestamp": @0, @"credentials": @[ @{ @"createdDate": @0, @"credentialData": @"", @"id": @"", @"priority": @0, @"secretData": @"", @"temporary": @NO, @"type": @"", @"userLabel": @"", @"value": @"" } ], @"disableableCredentialTypes": @[  ], @"email": @"", @"emailVerified": @NO, @"enabled": @NO, @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ], @"federationLink": @"", @"firstName": @"", @"groups": @[  ], @"id": @"", @"lastName": @"", @"notBefore": @0, @"origin": @"", @"realmRoles": @[  ], @"requiredActions": @[  ], @"self": @"", @"serviceAccountClientId": @"", @"username": @"" } ],
                              @"groups": @[ @{ @"access": @{  }, @"attributes": @{  }, @"clientRoles": @{  }, @"id": @"", @"name": @"", @"path": @"", @"realmRoles": @[  ], @"subGroups": @[  ] } ],
                              @"id": @"",
                              @"identityProviderMappers": @[ @{ @"config": @{  }, @"id": @"", @"identityProviderAlias": @"", @"identityProviderMapper": @"", @"name": @"" } ],
                              @"identityProviders": @[ @{ @"addReadTokenRoleOnCreate": @NO, @"alias": @"", @"config": @{  }, @"displayName": @"", @"enabled": @NO, @"firstBrokerLoginFlowAlias": @"", @"internalId": @"", @"linkOnly": @NO, @"postBrokerLoginFlowAlias": @"", @"providerId": @"", @"storeToken": @NO, @"trustEmail": @NO } ],
                              @"internationalizationEnabled": @NO,
                              @"keycloakVersion": @"",
                              @"loginTheme": @"",
                              @"loginWithEmailAllowed": @NO,
                              @"maxDeltaTimeSeconds": @0,
                              @"maxFailureWaitSeconds": @0,
                              @"minimumQuickLoginWaitSeconds": @0,
                              @"notBefore": @0,
                              @"offlineSessionIdleTimeout": @0,
                              @"offlineSessionMaxLifespan": @0,
                              @"offlineSessionMaxLifespanEnabled": @NO,
                              @"otpPolicyAlgorithm": @"",
                              @"otpPolicyDigits": @0,
                              @"otpPolicyInitialCounter": @0,
                              @"otpPolicyLookAheadWindow": @0,
                              @"otpPolicyPeriod": @0,
                              @"otpPolicyType": @"",
                              @"otpSupportedApplications": @[  ],
                              @"passwordPolicy": @"",
                              @"permanentLockout": @NO,
                              @"protocolMappers": @[ @{  } ],
                              @"quickLoginCheckMilliSeconds": @0,
                              @"realm": @"",
                              @"refreshTokenMaxReuse": @0,
                              @"registrationAllowed": @NO,
                              @"registrationEmailAsUsername": @NO,
                              @"registrationFlow": @"",
                              @"rememberMe": @NO,
                              @"requiredActions": @[ @{ @"alias": @"", @"config": @{  }, @"defaultAction": @NO, @"enabled": @NO, @"name": @"", @"priority": @0, @"providerId": @"" } ],
                              @"resetCredentialsFlow": @"",
                              @"resetPasswordAllowed": @NO,
                              @"revokeRefreshToken": @NO,
                              @"roles": @{ @"client": @{  }, @"realm": @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ] },
                              @"scopeMappings": @[ @{ @"client": @"", @"clientScope": @"", @"roles": @[  ], @"self": @"" } ],
                              @"smtpServer": @{  },
                              @"sslRequired": @"",
                              @"ssoSessionIdleTimeout": @0,
                              @"ssoSessionIdleTimeoutRememberMe": @0,
                              @"ssoSessionMaxLifespan": @0,
                              @"ssoSessionMaxLifespanRememberMe": @0,
                              @"supportedLocales": @[  ],
                              @"userFederationMappers": @[ @{ @"config": @{  }, @"federationMapperType": @"", @"federationProviderDisplayName": @"", @"id": @"", @"name": @"" } ],
                              @"userFederationProviders": @[ @{ @"changedSyncPeriod": @0, @"config": @{  }, @"displayName": @"", @"fullSyncPeriod": @0, @"id": @"", @"lastSync": @0, @"priority": @0, @"providerName": @"" } ],
                              @"userManagedAccessAllowed": @NO,
                              @"users": @[ @{  } ],
                              @"verifyEmail": @NO,
                              @"waitIncrementSeconds": @0,
                              @"webAuthnPolicyAcceptableAaguids": @[  ],
                              @"webAuthnPolicyAttestationConveyancePreference": @"",
                              @"webAuthnPolicyAuthenticatorAttachment": @"",
                              @"webAuthnPolicyAvoidSameAuthenticatorRegister": @NO,
                              @"webAuthnPolicyCreateTimeout": @0,
                              @"webAuthnPolicyPasswordlessAcceptableAaguids": @[  ],
                              @"webAuthnPolicyPasswordlessAttestationConveyancePreference": @"",
                              @"webAuthnPolicyPasswordlessAuthenticatorAttachment": @"",
                              @"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": @NO,
                              @"webAuthnPolicyPasswordlessCreateTimeout": @0,
                              @"webAuthnPolicyPasswordlessRequireResidentKey": @"",
                              @"webAuthnPolicyPasswordlessRpEntityName": @"",
                              @"webAuthnPolicyPasswordlessRpId": @"",
                              @"webAuthnPolicyPasswordlessSignatureAlgorithms": @[  ],
                              @"webAuthnPolicyPasswordlessUserVerificationRequirement": @"",
                              @"webAuthnPolicyRequireResidentKey": @"",
                              @"webAuthnPolicyRpEntityName": @"",
                              @"webAuthnPolicyRpId": @"",
                              @"webAuthnPolicySignatureAlgorithms": @[  ],
                              @"webAuthnPolicyUserVerificationRequirement": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accessCodeLifespan' => 0,
    'accessCodeLifespanLogin' => 0,
    'accessCodeLifespanUserAction' => 0,
    'accessTokenLifespan' => 0,
    'accessTokenLifespanForImplicitFlow' => 0,
    'accountTheme' => '',
    'actionTokenGeneratedByAdminLifespan' => 0,
    'actionTokenGeneratedByUserLifespan' => 0,
    'adminEventsDetailsEnabled' => null,
    'adminEventsEnabled' => null,
    'adminTheme' => '',
    'attributes' => [
        
    ],
    'authenticationFlows' => [
        [
                'alias' => '',
                'authenticationExecutions' => [
                                [
                                                                'authenticator' => '',
                                                                'authenticatorConfig' => '',
                                                                'authenticatorFlow' => null,
                                                                'autheticatorFlow' => null,
                                                                'flowAlias' => '',
                                                                'priority' => 0,
                                                                'requirement' => '',
                                                                'userSetupAllowed' => null
                                ]
                ],
                'builtIn' => null,
                'description' => '',
                'id' => '',
                'providerId' => '',
                'topLevel' => null
        ]
    ],
    'authenticatorConfig' => [
        [
                'alias' => '',
                'config' => [
                                
                ],
                'id' => ''
        ]
    ],
    'browserFlow' => '',
    'browserSecurityHeaders' => [
        
    ],
    'bruteForceProtected' => null,
    'clientAuthenticationFlow' => '',
    'clientScopeMappings' => [
        
    ],
    'clientScopes' => [
        [
                'attributes' => [
                                
                ],
                'description' => '',
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMappers' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'id' => '',
                                                                'name' => '',
                                                                'protocol' => '',
                                                                'protocolMapper' => ''
                                ]
                ]
        ]
    ],
    'clientSessionIdleTimeout' => 0,
    'clientSessionMaxLifespan' => 0,
    'clients' => [
        [
                'access' => [
                                
                ],
                'adminUrl' => '',
                'alwaysDisplayInConsole' => null,
                'attributes' => [
                                
                ],
                'authenticationFlowBindingOverrides' => [
                                
                ],
                'authorizationServicesEnabled' => null,
                'authorizationSettings' => [
                                'allowRemoteResourceManagement' => null,
                                'clientId' => '',
                                'decisionStrategy' => '',
                                'id' => '',
                                'name' => '',
                                'policies' => [
                                                                [
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'description' => '',
                                                                                                                                'id' => '',
                                                                                                                                'logic' => '',
                                                                                                                                'name' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'policyEnforcementMode' => '',
                                'resources' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'scopes' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ],
                'baseUrl' => '',
                'bearerOnly' => null,
                'clientAuthenticatorType' => '',
                'clientId' => '',
                'consentRequired' => null,
                'defaultClientScopes' => [
                                
                ],
                'defaultRoles' => [
                                
                ],
                'description' => '',
                'directAccessGrantsEnabled' => null,
                'enabled' => null,
                'frontchannelLogout' => null,
                'fullScopeAllowed' => null,
                'id' => '',
                'implicitFlowEnabled' => null,
                'name' => '',
                'nodeReRegistrationTimeout' => 0,
                'notBefore' => 0,
                'optionalClientScopes' => [
                                
                ],
                'origin' => '',
                'protocol' => '',
                'protocolMappers' => [
                                [
                                                                
                                ]
                ],
                'publicClient' => null,
                'redirectUris' => [
                                
                ],
                'registeredNodes' => [
                                
                ],
                'registrationAccessToken' => '',
                'rootUrl' => '',
                'secret' => '',
                'serviceAccountsEnabled' => null,
                'standardFlowEnabled' => null,
                'surrogateAuthRequired' => null,
                'webOrigins' => [
                                
                ]
        ]
    ],
    'components' => [
        'empty' => null,
        'loadFactor' => '',
        'threshold' => 0
    ],
    'defaultDefaultClientScopes' => [
        
    ],
    'defaultGroups' => [
        
    ],
    'defaultLocale' => '',
    'defaultOptionalClientScopes' => [
        
    ],
    'defaultRoles' => [
        
    ],
    'defaultSignatureAlgorithm' => '',
    'directGrantFlow' => '',
    'displayName' => '',
    'displayNameHtml' => '',
    'dockerAuthenticationFlow' => '',
    'duplicateEmailsAllowed' => null,
    'editUsernameAllowed' => null,
    'emailTheme' => '',
    'enabled' => null,
    'enabledEventTypes' => [
        
    ],
    'eventsEnabled' => null,
    'eventsExpiration' => 0,
    'eventsListeners' => [
        
    ],
    'failureFactor' => 0,
    'federatedUsers' => [
        [
                'access' => [
                                
                ],
                'attributes' => [
                                
                ],
                'clientConsents' => [
                                [
                                                                'clientId' => '',
                                                                'createdDate' => 0,
                                                                'grantedClientScopes' => [
                                                                                                                                
                                                                ],
                                                                'lastUpdatedDate' => 0
                                ]
                ],
                'clientRoles' => [
                                
                ],
                'createdTimestamp' => 0,
                'credentials' => [
                                [
                                                                'createdDate' => 0,
                                                                'credentialData' => '',
                                                                'id' => '',
                                                                'priority' => 0,
                                                                'secretData' => '',
                                                                'temporary' => null,
                                                                'type' => '',
                                                                'userLabel' => '',
                                                                'value' => ''
                                ]
                ],
                'disableableCredentialTypes' => [
                                
                ],
                'email' => '',
                'emailVerified' => null,
                'enabled' => null,
                'federatedIdentities' => [
                                [
                                                                'identityProvider' => '',
                                                                'userId' => '',
                                                                'userName' => ''
                                ]
                ],
                'federationLink' => '',
                'firstName' => '',
                'groups' => [
                                
                ],
                'id' => '',
                'lastName' => '',
                'notBefore' => 0,
                'origin' => '',
                'realmRoles' => [
                                
                ],
                'requiredActions' => [
                                
                ],
                'self' => '',
                'serviceAccountClientId' => '',
                'username' => ''
        ]
    ],
    'groups' => [
        [
                'access' => [
                                
                ],
                'attributes' => [
                                
                ],
                'clientRoles' => [
                                
                ],
                'id' => '',
                'name' => '',
                'path' => '',
                'realmRoles' => [
                                
                ],
                'subGroups' => [
                                
                ]
        ]
    ],
    'id' => '',
    'identityProviderMappers' => [
        [
                'config' => [
                                
                ],
                'id' => '',
                'identityProviderAlias' => '',
                'identityProviderMapper' => '',
                'name' => ''
        ]
    ],
    'identityProviders' => [
        [
                'addReadTokenRoleOnCreate' => null,
                'alias' => '',
                'config' => [
                                
                ],
                'displayName' => '',
                'enabled' => null,
                'firstBrokerLoginFlowAlias' => '',
                'internalId' => '',
                'linkOnly' => null,
                'postBrokerLoginFlowAlias' => '',
                'providerId' => '',
                'storeToken' => null,
                'trustEmail' => null
        ]
    ],
    'internationalizationEnabled' => null,
    'keycloakVersion' => '',
    'loginTheme' => '',
    'loginWithEmailAllowed' => null,
    'maxDeltaTimeSeconds' => 0,
    'maxFailureWaitSeconds' => 0,
    'minimumQuickLoginWaitSeconds' => 0,
    'notBefore' => 0,
    'offlineSessionIdleTimeout' => 0,
    'offlineSessionMaxLifespan' => 0,
    'offlineSessionMaxLifespanEnabled' => null,
    'otpPolicyAlgorithm' => '',
    'otpPolicyDigits' => 0,
    'otpPolicyInitialCounter' => 0,
    'otpPolicyLookAheadWindow' => 0,
    'otpPolicyPeriod' => 0,
    'otpPolicyType' => '',
    'otpSupportedApplications' => [
        
    ],
    'passwordPolicy' => '',
    'permanentLockout' => null,
    'protocolMappers' => [
        [
                
        ]
    ],
    'quickLoginCheckMilliSeconds' => 0,
    'realm' => '',
    'refreshTokenMaxReuse' => 0,
    'registrationAllowed' => null,
    'registrationEmailAsUsername' => null,
    'registrationFlow' => '',
    'rememberMe' => null,
    'requiredActions' => [
        [
                'alias' => '',
                'config' => [
                                
                ],
                'defaultAction' => null,
                'enabled' => null,
                'name' => '',
                'priority' => 0,
                'providerId' => ''
        ]
    ],
    'resetCredentialsFlow' => '',
    'resetPasswordAllowed' => null,
    'revokeRefreshToken' => null,
    'roles' => [
        'client' => [
                
        ],
        'realm' => [
                [
                                'attributes' => [
                                                                
                                ],
                                'clientRole' => null,
                                'composite' => null,
                                'composites' => [
                                                                'client' => [
                                                                                                                                
                                                                ],
                                                                'realm' => [
                                                                                                                                
                                                                ]
                                ],
                                'containerId' => '',
                                'description' => '',
                                'id' => '',
                                'name' => ''
                ]
        ]
    ],
    'scopeMappings' => [
        [
                'client' => '',
                'clientScope' => '',
                'roles' => [
                                
                ],
                'self' => ''
        ]
    ],
    'smtpServer' => [
        
    ],
    'sslRequired' => '',
    'ssoSessionIdleTimeout' => 0,
    'ssoSessionIdleTimeoutRememberMe' => 0,
    'ssoSessionMaxLifespan' => 0,
    'ssoSessionMaxLifespanRememberMe' => 0,
    'supportedLocales' => [
        
    ],
    'userFederationMappers' => [
        [
                'config' => [
                                
                ],
                'federationMapperType' => '',
                'federationProviderDisplayName' => '',
                'id' => '',
                'name' => ''
        ]
    ],
    'userFederationProviders' => [
        [
                'changedSyncPeriod' => 0,
                'config' => [
                                
                ],
                'displayName' => '',
                'fullSyncPeriod' => 0,
                'id' => '',
                'lastSync' => 0,
                'priority' => 0,
                'providerName' => ''
        ]
    ],
    'userManagedAccessAllowed' => null,
    'users' => [
        [
                
        ]
    ],
    'verifyEmail' => null,
    'waitIncrementSeconds' => 0,
    'webAuthnPolicyAcceptableAaguids' => [
        
    ],
    'webAuthnPolicyAttestationConveyancePreference' => '',
    'webAuthnPolicyAuthenticatorAttachment' => '',
    'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
    'webAuthnPolicyCreateTimeout' => 0,
    'webAuthnPolicyPasswordlessAcceptableAaguids' => [
        
    ],
    'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
    'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
    'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
    'webAuthnPolicyPasswordlessCreateTimeout' => 0,
    'webAuthnPolicyPasswordlessRequireResidentKey' => '',
    'webAuthnPolicyPasswordlessRpEntityName' => '',
    'webAuthnPolicyPasswordlessRpId' => '',
    'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
        
    ],
    'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
    'webAuthnPolicyRequireResidentKey' => '',
    'webAuthnPolicyRpEntityName' => '',
    'webAuthnPolicyRpId' => '',
    'webAuthnPolicySignatureAlgorithms' => [
        
    ],
    'webAuthnPolicyUserVerificationRequirement' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm', [
  'body' => '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accessCodeLifespan' => 0,
  'accessCodeLifespanLogin' => 0,
  'accessCodeLifespanUserAction' => 0,
  'accessTokenLifespan' => 0,
  'accessTokenLifespanForImplicitFlow' => 0,
  'accountTheme' => '',
  'actionTokenGeneratedByAdminLifespan' => 0,
  'actionTokenGeneratedByUserLifespan' => 0,
  'adminEventsDetailsEnabled' => null,
  'adminEventsEnabled' => null,
  'adminTheme' => '',
  'attributes' => [
    
  ],
  'authenticationFlows' => [
    [
        'alias' => '',
        'authenticationExecutions' => [
                [
                                'authenticator' => '',
                                'authenticatorConfig' => '',
                                'authenticatorFlow' => null,
                                'autheticatorFlow' => null,
                                'flowAlias' => '',
                                'priority' => 0,
                                'requirement' => '',
                                'userSetupAllowed' => null
                ]
        ],
        'builtIn' => null,
        'description' => '',
        'id' => '',
        'providerId' => '',
        'topLevel' => null
    ]
  ],
  'authenticatorConfig' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'id' => ''
    ]
  ],
  'browserFlow' => '',
  'browserSecurityHeaders' => [
    
  ],
  'bruteForceProtected' => null,
  'clientAuthenticationFlow' => '',
  'clientScopeMappings' => [
    
  ],
  'clientScopes' => [
    [
        'attributes' => [
                
        ],
        'description' => '',
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                'config' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'protocol' => '',
                                'protocolMapper' => ''
                ]
        ]
    ]
  ],
  'clientSessionIdleTimeout' => 0,
  'clientSessionMaxLifespan' => 0,
  'clients' => [
    [
        'access' => [
                
        ],
        'adminUrl' => '',
        'alwaysDisplayInConsole' => null,
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'authorizationServicesEnabled' => null,
        'authorizationSettings' => [
                'allowRemoteResourceManagement' => null,
                'clientId' => '',
                'decisionStrategy' => '',
                'id' => '',
                'name' => '',
                'policies' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'decisionStrategy' => '',
                                                                'description' => '',
                                                                'id' => '',
                                                                'logic' => '',
                                                                'name' => '',
                                                                'owner' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'resourcesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'policyEnforcementMode' => '',
                'resources' => [
                                [
                                                                
                                ]
                ],
                'scopes' => [
                                [
                                                                
                                ]
                ]
        ],
        'baseUrl' => '',
        'bearerOnly' => null,
        'clientAuthenticatorType' => '',
        'clientId' => '',
        'consentRequired' => null,
        'defaultClientScopes' => [
                
        ],
        'defaultRoles' => [
                
        ],
        'description' => '',
        'directAccessGrantsEnabled' => null,
        'enabled' => null,
        'frontchannelLogout' => null,
        'fullScopeAllowed' => null,
        'id' => '',
        'implicitFlowEnabled' => null,
        'name' => '',
        'nodeReRegistrationTimeout' => 0,
        'notBefore' => 0,
        'optionalClientScopes' => [
                
        ],
        'origin' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                
                ]
        ],
        'publicClient' => null,
        'redirectUris' => [
                
        ],
        'registeredNodes' => [
                
        ],
        'registrationAccessToken' => '',
        'rootUrl' => '',
        'secret' => '',
        'serviceAccountsEnabled' => null,
        'standardFlowEnabled' => null,
        'surrogateAuthRequired' => null,
        'webOrigins' => [
                
        ]
    ]
  ],
  'components' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'defaultDefaultClientScopes' => [
    
  ],
  'defaultGroups' => [
    
  ],
  'defaultLocale' => '',
  'defaultOptionalClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'defaultSignatureAlgorithm' => '',
  'directGrantFlow' => '',
  'displayName' => '',
  'displayNameHtml' => '',
  'dockerAuthenticationFlow' => '',
  'duplicateEmailsAllowed' => null,
  'editUsernameAllowed' => null,
  'emailTheme' => '',
  'enabled' => null,
  'enabledEventTypes' => [
    
  ],
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'failureFactor' => 0,
  'federatedUsers' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'createdDate' => 0,
                                'grantedClientScopes' => [
                                                                
                                ],
                                'lastUpdatedDate' => 0
                ]
        ],
        'clientRoles' => [
                
        ],
        'createdTimestamp' => 0,
        'credentials' => [
                [
                                'createdDate' => 0,
                                'credentialData' => '',
                                'id' => '',
                                'priority' => 0,
                                'secretData' => '',
                                'temporary' => null,
                                'type' => '',
                                'userLabel' => '',
                                'value' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'email' => '',
        'emailVerified' => null,
        'enabled' => null,
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'federationLink' => '',
        'firstName' => '',
        'groups' => [
                
        ],
        'id' => '',
        'lastName' => '',
        'notBefore' => 0,
        'origin' => '',
        'realmRoles' => [
                
        ],
        'requiredActions' => [
                
        ],
        'self' => '',
        'serviceAccountClientId' => '',
        'username' => ''
    ]
  ],
  'groups' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientRoles' => [
                
        ],
        'id' => '',
        'name' => '',
        'path' => '',
        'realmRoles' => [
                
        ],
        'subGroups' => [
                
        ]
    ]
  ],
  'id' => '',
  'identityProviderMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'identityProviderAlias' => '',
        'identityProviderMapper' => '',
        'name' => ''
    ]
  ],
  'identityProviders' => [
    [
        'addReadTokenRoleOnCreate' => null,
        'alias' => '',
        'config' => [
                
        ],
        'displayName' => '',
        'enabled' => null,
        'firstBrokerLoginFlowAlias' => '',
        'internalId' => '',
        'linkOnly' => null,
        'postBrokerLoginFlowAlias' => '',
        'providerId' => '',
        'storeToken' => null,
        'trustEmail' => null
    ]
  ],
  'internationalizationEnabled' => null,
  'keycloakVersion' => '',
  'loginTheme' => '',
  'loginWithEmailAllowed' => null,
  'maxDeltaTimeSeconds' => 0,
  'maxFailureWaitSeconds' => 0,
  'minimumQuickLoginWaitSeconds' => 0,
  'notBefore' => 0,
  'offlineSessionIdleTimeout' => 0,
  'offlineSessionMaxLifespan' => 0,
  'offlineSessionMaxLifespanEnabled' => null,
  'otpPolicyAlgorithm' => '',
  'otpPolicyDigits' => 0,
  'otpPolicyInitialCounter' => 0,
  'otpPolicyLookAheadWindow' => 0,
  'otpPolicyPeriod' => 0,
  'otpPolicyType' => '',
  'otpSupportedApplications' => [
    
  ],
  'passwordPolicy' => '',
  'permanentLockout' => null,
  'protocolMappers' => [
    [
        
    ]
  ],
  'quickLoginCheckMilliSeconds' => 0,
  'realm' => '',
  'refreshTokenMaxReuse' => 0,
  'registrationAllowed' => null,
  'registrationEmailAsUsername' => null,
  'registrationFlow' => '',
  'rememberMe' => null,
  'requiredActions' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'defaultAction' => null,
        'enabled' => null,
        'name' => '',
        'priority' => 0,
        'providerId' => ''
    ]
  ],
  'resetCredentialsFlow' => '',
  'resetPasswordAllowed' => null,
  'revokeRefreshToken' => null,
  'roles' => [
    'client' => [
        
    ],
    'realm' => [
        [
                'attributes' => [
                                
                ],
                'clientRole' => null,
                'composite' => null,
                'composites' => [
                                'client' => [
                                                                
                                ],
                                'realm' => [
                                                                
                                ]
                ],
                'containerId' => '',
                'description' => '',
                'id' => '',
                'name' => ''
        ]
    ]
  ],
  'scopeMappings' => [
    [
        'client' => '',
        'clientScope' => '',
        'roles' => [
                
        ],
        'self' => ''
    ]
  ],
  'smtpServer' => [
    
  ],
  'sslRequired' => '',
  'ssoSessionIdleTimeout' => 0,
  'ssoSessionIdleTimeoutRememberMe' => 0,
  'ssoSessionMaxLifespan' => 0,
  'ssoSessionMaxLifespanRememberMe' => 0,
  'supportedLocales' => [
    
  ],
  'userFederationMappers' => [
    [
        'config' => [
                
        ],
        'federationMapperType' => '',
        'federationProviderDisplayName' => '',
        'id' => '',
        'name' => ''
    ]
  ],
  'userFederationProviders' => [
    [
        'changedSyncPeriod' => 0,
        'config' => [
                
        ],
        'displayName' => '',
        'fullSyncPeriod' => 0,
        'id' => '',
        'lastSync' => 0,
        'priority' => 0,
        'providerName' => ''
    ]
  ],
  'userManagedAccessAllowed' => null,
  'users' => [
    [
        
    ]
  ],
  'verifyEmail' => null,
  'waitIncrementSeconds' => 0,
  'webAuthnPolicyAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyAttestationConveyancePreference' => '',
  'webAuthnPolicyAuthenticatorAttachment' => '',
  'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
  'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
  'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyPasswordlessCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessRequireResidentKey' => '',
  'webAuthnPolicyPasswordlessRpEntityName' => '',
  'webAuthnPolicyPasswordlessRpId' => '',
  'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
  'webAuthnPolicyRequireResidentKey' => '',
  'webAuthnPolicyRpEntityName' => '',
  'webAuthnPolicyRpId' => '',
  'webAuthnPolicySignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyUserVerificationRequirement' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accessCodeLifespan' => 0,
  'accessCodeLifespanLogin' => 0,
  'accessCodeLifespanUserAction' => 0,
  'accessTokenLifespan' => 0,
  'accessTokenLifespanForImplicitFlow' => 0,
  'accountTheme' => '',
  'actionTokenGeneratedByAdminLifespan' => 0,
  'actionTokenGeneratedByUserLifespan' => 0,
  'adminEventsDetailsEnabled' => null,
  'adminEventsEnabled' => null,
  'adminTheme' => '',
  'attributes' => [
    
  ],
  'authenticationFlows' => [
    [
        'alias' => '',
        'authenticationExecutions' => [
                [
                                'authenticator' => '',
                                'authenticatorConfig' => '',
                                'authenticatorFlow' => null,
                                'autheticatorFlow' => null,
                                'flowAlias' => '',
                                'priority' => 0,
                                'requirement' => '',
                                'userSetupAllowed' => null
                ]
        ],
        'builtIn' => null,
        'description' => '',
        'id' => '',
        'providerId' => '',
        'topLevel' => null
    ]
  ],
  'authenticatorConfig' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'id' => ''
    ]
  ],
  'browserFlow' => '',
  'browserSecurityHeaders' => [
    
  ],
  'bruteForceProtected' => null,
  'clientAuthenticationFlow' => '',
  'clientScopeMappings' => [
    
  ],
  'clientScopes' => [
    [
        'attributes' => [
                
        ],
        'description' => '',
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                'config' => [
                                                                
                                ],
                                'id' => '',
                                'name' => '',
                                'protocol' => '',
                                'protocolMapper' => ''
                ]
        ]
    ]
  ],
  'clientSessionIdleTimeout' => 0,
  'clientSessionMaxLifespan' => 0,
  'clients' => [
    [
        'access' => [
                
        ],
        'adminUrl' => '',
        'alwaysDisplayInConsole' => null,
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'authorizationServicesEnabled' => null,
        'authorizationSettings' => [
                'allowRemoteResourceManagement' => null,
                'clientId' => '',
                'decisionStrategy' => '',
                'id' => '',
                'name' => '',
                'policies' => [
                                [
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'decisionStrategy' => '',
                                                                'description' => '',
                                                                'id' => '',
                                                                'logic' => '',
                                                                'name' => '',
                                                                'owner' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'resourcesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'attributes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                'icon_uri' => '',
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'ownerManagedAccess' => null,
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'displayName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'uris' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'type' => ''
                                ]
                ],
                'policyEnforcementMode' => '',
                'resources' => [
                                [
                                                                
                                ]
                ],
                'scopes' => [
                                [
                                                                
                                ]
                ]
        ],
        'baseUrl' => '',
        'bearerOnly' => null,
        'clientAuthenticatorType' => '',
        'clientId' => '',
        'consentRequired' => null,
        'defaultClientScopes' => [
                
        ],
        'defaultRoles' => [
                
        ],
        'description' => '',
        'directAccessGrantsEnabled' => null,
        'enabled' => null,
        'frontchannelLogout' => null,
        'fullScopeAllowed' => null,
        'id' => '',
        'implicitFlowEnabled' => null,
        'name' => '',
        'nodeReRegistrationTimeout' => 0,
        'notBefore' => 0,
        'optionalClientScopes' => [
                
        ],
        'origin' => '',
        'protocol' => '',
        'protocolMappers' => [
                [
                                
                ]
        ],
        'publicClient' => null,
        'redirectUris' => [
                
        ],
        'registeredNodes' => [
                
        ],
        'registrationAccessToken' => '',
        'rootUrl' => '',
        'secret' => '',
        'serviceAccountsEnabled' => null,
        'standardFlowEnabled' => null,
        'surrogateAuthRequired' => null,
        'webOrigins' => [
                
        ]
    ]
  ],
  'components' => [
    'empty' => null,
    'loadFactor' => '',
    'threshold' => 0
  ],
  'defaultDefaultClientScopes' => [
    
  ],
  'defaultGroups' => [
    
  ],
  'defaultLocale' => '',
  'defaultOptionalClientScopes' => [
    
  ],
  'defaultRoles' => [
    
  ],
  'defaultSignatureAlgorithm' => '',
  'directGrantFlow' => '',
  'displayName' => '',
  'displayNameHtml' => '',
  'dockerAuthenticationFlow' => '',
  'duplicateEmailsAllowed' => null,
  'editUsernameAllowed' => null,
  'emailTheme' => '',
  'enabled' => null,
  'enabledEventTypes' => [
    
  ],
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'failureFactor' => 0,
  'federatedUsers' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'createdDate' => 0,
                                'grantedClientScopes' => [
                                                                
                                ],
                                'lastUpdatedDate' => 0
                ]
        ],
        'clientRoles' => [
                
        ],
        'createdTimestamp' => 0,
        'credentials' => [
                [
                                'createdDate' => 0,
                                'credentialData' => '',
                                'id' => '',
                                'priority' => 0,
                                'secretData' => '',
                                'temporary' => null,
                                'type' => '',
                                'userLabel' => '',
                                'value' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'email' => '',
        'emailVerified' => null,
        'enabled' => null,
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'federationLink' => '',
        'firstName' => '',
        'groups' => [
                
        ],
        'id' => '',
        'lastName' => '',
        'notBefore' => 0,
        'origin' => '',
        'realmRoles' => [
                
        ],
        'requiredActions' => [
                
        ],
        'self' => '',
        'serviceAccountClientId' => '',
        'username' => ''
    ]
  ],
  'groups' => [
    [
        'access' => [
                
        ],
        'attributes' => [
                
        ],
        'clientRoles' => [
                
        ],
        'id' => '',
        'name' => '',
        'path' => '',
        'realmRoles' => [
                
        ],
        'subGroups' => [
                
        ]
    ]
  ],
  'id' => '',
  'identityProviderMappers' => [
    [
        'config' => [
                
        ],
        'id' => '',
        'identityProviderAlias' => '',
        'identityProviderMapper' => '',
        'name' => ''
    ]
  ],
  'identityProviders' => [
    [
        'addReadTokenRoleOnCreate' => null,
        'alias' => '',
        'config' => [
                
        ],
        'displayName' => '',
        'enabled' => null,
        'firstBrokerLoginFlowAlias' => '',
        'internalId' => '',
        'linkOnly' => null,
        'postBrokerLoginFlowAlias' => '',
        'providerId' => '',
        'storeToken' => null,
        'trustEmail' => null
    ]
  ],
  'internationalizationEnabled' => null,
  'keycloakVersion' => '',
  'loginTheme' => '',
  'loginWithEmailAllowed' => null,
  'maxDeltaTimeSeconds' => 0,
  'maxFailureWaitSeconds' => 0,
  'minimumQuickLoginWaitSeconds' => 0,
  'notBefore' => 0,
  'offlineSessionIdleTimeout' => 0,
  'offlineSessionMaxLifespan' => 0,
  'offlineSessionMaxLifespanEnabled' => null,
  'otpPolicyAlgorithm' => '',
  'otpPolicyDigits' => 0,
  'otpPolicyInitialCounter' => 0,
  'otpPolicyLookAheadWindow' => 0,
  'otpPolicyPeriod' => 0,
  'otpPolicyType' => '',
  'otpSupportedApplications' => [
    
  ],
  'passwordPolicy' => '',
  'permanentLockout' => null,
  'protocolMappers' => [
    [
        
    ]
  ],
  'quickLoginCheckMilliSeconds' => 0,
  'realm' => '',
  'refreshTokenMaxReuse' => 0,
  'registrationAllowed' => null,
  'registrationEmailAsUsername' => null,
  'registrationFlow' => '',
  'rememberMe' => null,
  'requiredActions' => [
    [
        'alias' => '',
        'config' => [
                
        ],
        'defaultAction' => null,
        'enabled' => null,
        'name' => '',
        'priority' => 0,
        'providerId' => ''
    ]
  ],
  'resetCredentialsFlow' => '',
  'resetPasswordAllowed' => null,
  'revokeRefreshToken' => null,
  'roles' => [
    'client' => [
        
    ],
    'realm' => [
        [
                'attributes' => [
                                
                ],
                'clientRole' => null,
                'composite' => null,
                'composites' => [
                                'client' => [
                                                                
                                ],
                                'realm' => [
                                                                
                                ]
                ],
                'containerId' => '',
                'description' => '',
                'id' => '',
                'name' => ''
        ]
    ]
  ],
  'scopeMappings' => [
    [
        'client' => '',
        'clientScope' => '',
        'roles' => [
                
        ],
        'self' => ''
    ]
  ],
  'smtpServer' => [
    
  ],
  'sslRequired' => '',
  'ssoSessionIdleTimeout' => 0,
  'ssoSessionIdleTimeoutRememberMe' => 0,
  'ssoSessionMaxLifespan' => 0,
  'ssoSessionMaxLifespanRememberMe' => 0,
  'supportedLocales' => [
    
  ],
  'userFederationMappers' => [
    [
        'config' => [
                
        ],
        'federationMapperType' => '',
        'federationProviderDisplayName' => '',
        'id' => '',
        'name' => ''
    ]
  ],
  'userFederationProviders' => [
    [
        'changedSyncPeriod' => 0,
        'config' => [
                
        ],
        'displayName' => '',
        'fullSyncPeriod' => 0,
        'id' => '',
        'lastSync' => 0,
        'priority' => 0,
        'providerName' => ''
    ]
  ],
  'userManagedAccessAllowed' => null,
  'users' => [
    [
        
    ]
  ],
  'verifyEmail' => null,
  'waitIncrementSeconds' => 0,
  'webAuthnPolicyAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyAttestationConveyancePreference' => '',
  'webAuthnPolicyAuthenticatorAttachment' => '',
  'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
  'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
  'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyPasswordlessCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessRequireResidentKey' => '',
  'webAuthnPolicyPasswordlessRpEntityName' => '',
  'webAuthnPolicyPasswordlessRpId' => '',
  'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
  'webAuthnPolicyRequireResidentKey' => '',
  'webAuthnPolicyRpEntityName' => '',
  'webAuthnPolicyRpId' => '',
  'webAuthnPolicySignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyUserVerificationRequirement' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm"

payload = {
    "accessCodeLifespan": 0,
    "accessCodeLifespanLogin": 0,
    "accessCodeLifespanUserAction": 0,
    "accessTokenLifespan": 0,
    "accessTokenLifespanForImplicitFlow": 0,
    "accountTheme": "",
    "actionTokenGeneratedByAdminLifespan": 0,
    "actionTokenGeneratedByUserLifespan": 0,
    "adminEventsDetailsEnabled": False,
    "adminEventsEnabled": False,
    "adminTheme": "",
    "attributes": {},
    "authenticationFlows": [
        {
            "alias": "",
            "authenticationExecutions": [
                {
                    "authenticator": "",
                    "authenticatorConfig": "",
                    "authenticatorFlow": False,
                    "autheticatorFlow": False,
                    "flowAlias": "",
                    "priority": 0,
                    "requirement": "",
                    "userSetupAllowed": False
                }
            ],
            "builtIn": False,
            "description": "",
            "id": "",
            "providerId": "",
            "topLevel": False
        }
    ],
    "authenticatorConfig": [
        {
            "alias": "",
            "config": {},
            "id": ""
        }
    ],
    "browserFlow": "",
    "browserSecurityHeaders": {},
    "bruteForceProtected": False,
    "clientAuthenticationFlow": "",
    "clientScopeMappings": {},
    "clientScopes": [
        {
            "attributes": {},
            "description": "",
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMappers": [
                {
                    "config": {},
                    "id": "",
                    "name": "",
                    "protocol": "",
                    "protocolMapper": ""
                }
            ]
        }
    ],
    "clientSessionIdleTimeout": 0,
    "clientSessionMaxLifespan": 0,
    "clients": [
        {
            "access": {},
            "adminUrl": "",
            "alwaysDisplayInConsole": False,
            "attributes": {},
            "authenticationFlowBindingOverrides": {},
            "authorizationServicesEnabled": False,
            "authorizationSettings": {
                "allowRemoteResourceManagement": False,
                "clientId": "",
                "decisionStrategy": "",
                "id": "",
                "name": "",
                "policies": [
                    {
                        "config": {},
                        "decisionStrategy": "",
                        "description": "",
                        "id": "",
                        "logic": "",
                        "name": "",
                        "owner": "",
                        "policies": [],
                        "resources": [],
                        "resourcesData": [
                            {
                                "attributes": {},
                                "displayName": "",
                                "icon_uri": "",
                                "id": "",
                                "name": "",
                                "ownerManagedAccess": False,
                                "scopes": [
                                    {
                                        "displayName": "",
                                        "iconUri": "",
                                        "id": "",
                                        "name": "",
                                        "policies": [],
                                        "resources": []
                                    }
                                ],
                                "type": "",
                                "uris": []
                            }
                        ],
                        "scopes": [],
                        "scopesData": [{}],
                        "type": ""
                    }
                ],
                "policyEnforcementMode": "",
                "resources": [{}],
                "scopes": [{}]
            },
            "baseUrl": "",
            "bearerOnly": False,
            "clientAuthenticatorType": "",
            "clientId": "",
            "consentRequired": False,
            "defaultClientScopes": [],
            "defaultRoles": [],
            "description": "",
            "directAccessGrantsEnabled": False,
            "enabled": False,
            "frontchannelLogout": False,
            "fullScopeAllowed": False,
            "id": "",
            "implicitFlowEnabled": False,
            "name": "",
            "nodeReRegistrationTimeout": 0,
            "notBefore": 0,
            "optionalClientScopes": [],
            "origin": "",
            "protocol": "",
            "protocolMappers": [{}],
            "publicClient": False,
            "redirectUris": [],
            "registeredNodes": {},
            "registrationAccessToken": "",
            "rootUrl": "",
            "secret": "",
            "serviceAccountsEnabled": False,
            "standardFlowEnabled": False,
            "surrogateAuthRequired": False,
            "webOrigins": []
        }
    ],
    "components": {
        "empty": False,
        "loadFactor": "",
        "threshold": 0
    },
    "defaultDefaultClientScopes": [],
    "defaultGroups": [],
    "defaultLocale": "",
    "defaultOptionalClientScopes": [],
    "defaultRoles": [],
    "defaultSignatureAlgorithm": "",
    "directGrantFlow": "",
    "displayName": "",
    "displayNameHtml": "",
    "dockerAuthenticationFlow": "",
    "duplicateEmailsAllowed": False,
    "editUsernameAllowed": False,
    "emailTheme": "",
    "enabled": False,
    "enabledEventTypes": [],
    "eventsEnabled": False,
    "eventsExpiration": 0,
    "eventsListeners": [],
    "failureFactor": 0,
    "federatedUsers": [
        {
            "access": {},
            "attributes": {},
            "clientConsents": [
                {
                    "clientId": "",
                    "createdDate": 0,
                    "grantedClientScopes": [],
                    "lastUpdatedDate": 0
                }
            ],
            "clientRoles": {},
            "createdTimestamp": 0,
            "credentials": [
                {
                    "createdDate": 0,
                    "credentialData": "",
                    "id": "",
                    "priority": 0,
                    "secretData": "",
                    "temporary": False,
                    "type": "",
                    "userLabel": "",
                    "value": ""
                }
            ],
            "disableableCredentialTypes": [],
            "email": "",
            "emailVerified": False,
            "enabled": False,
            "federatedIdentities": [
                {
                    "identityProvider": "",
                    "userId": "",
                    "userName": ""
                }
            ],
            "federationLink": "",
            "firstName": "",
            "groups": [],
            "id": "",
            "lastName": "",
            "notBefore": 0,
            "origin": "",
            "realmRoles": [],
            "requiredActions": [],
            "self": "",
            "serviceAccountClientId": "",
            "username": ""
        }
    ],
    "groups": [
        {
            "access": {},
            "attributes": {},
            "clientRoles": {},
            "id": "",
            "name": "",
            "path": "",
            "realmRoles": [],
            "subGroups": []
        }
    ],
    "id": "",
    "identityProviderMappers": [
        {
            "config": {},
            "id": "",
            "identityProviderAlias": "",
            "identityProviderMapper": "",
            "name": ""
        }
    ],
    "identityProviders": [
        {
            "addReadTokenRoleOnCreate": False,
            "alias": "",
            "config": {},
            "displayName": "",
            "enabled": False,
            "firstBrokerLoginFlowAlias": "",
            "internalId": "",
            "linkOnly": False,
            "postBrokerLoginFlowAlias": "",
            "providerId": "",
            "storeToken": False,
            "trustEmail": False
        }
    ],
    "internationalizationEnabled": False,
    "keycloakVersion": "",
    "loginTheme": "",
    "loginWithEmailAllowed": False,
    "maxDeltaTimeSeconds": 0,
    "maxFailureWaitSeconds": 0,
    "minimumQuickLoginWaitSeconds": 0,
    "notBefore": 0,
    "offlineSessionIdleTimeout": 0,
    "offlineSessionMaxLifespan": 0,
    "offlineSessionMaxLifespanEnabled": False,
    "otpPolicyAlgorithm": "",
    "otpPolicyDigits": 0,
    "otpPolicyInitialCounter": 0,
    "otpPolicyLookAheadWindow": 0,
    "otpPolicyPeriod": 0,
    "otpPolicyType": "",
    "otpSupportedApplications": [],
    "passwordPolicy": "",
    "permanentLockout": False,
    "protocolMappers": [{}],
    "quickLoginCheckMilliSeconds": 0,
    "realm": "",
    "refreshTokenMaxReuse": 0,
    "registrationAllowed": False,
    "registrationEmailAsUsername": False,
    "registrationFlow": "",
    "rememberMe": False,
    "requiredActions": [
        {
            "alias": "",
            "config": {},
            "defaultAction": False,
            "enabled": False,
            "name": "",
            "priority": 0,
            "providerId": ""
        }
    ],
    "resetCredentialsFlow": "",
    "resetPasswordAllowed": False,
    "revokeRefreshToken": False,
    "roles": {
        "client": {},
        "realm": [
            {
                "attributes": {},
                "clientRole": False,
                "composite": False,
                "composites": {
                    "client": {},
                    "realm": []
                },
                "containerId": "",
                "description": "",
                "id": "",
                "name": ""
            }
        ]
    },
    "scopeMappings": [
        {
            "client": "",
            "clientScope": "",
            "roles": [],
            "self": ""
        }
    ],
    "smtpServer": {},
    "sslRequired": "",
    "ssoSessionIdleTimeout": 0,
    "ssoSessionIdleTimeoutRememberMe": 0,
    "ssoSessionMaxLifespan": 0,
    "ssoSessionMaxLifespanRememberMe": 0,
    "supportedLocales": [],
    "userFederationMappers": [
        {
            "config": {},
            "federationMapperType": "",
            "federationProviderDisplayName": "",
            "id": "",
            "name": ""
        }
    ],
    "userFederationProviders": [
        {
            "changedSyncPeriod": 0,
            "config": {},
            "displayName": "",
            "fullSyncPeriod": 0,
            "id": "",
            "lastSync": 0,
            "priority": 0,
            "providerName": ""
        }
    ],
    "userManagedAccessAllowed": False,
    "users": [{}],
    "verifyEmail": False,
    "waitIncrementSeconds": 0,
    "webAuthnPolicyAcceptableAaguids": [],
    "webAuthnPolicyAttestationConveyancePreference": "",
    "webAuthnPolicyAuthenticatorAttachment": "",
    "webAuthnPolicyAvoidSameAuthenticatorRegister": False,
    "webAuthnPolicyCreateTimeout": 0,
    "webAuthnPolicyPasswordlessAcceptableAaguids": [],
    "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
    "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
    "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": False,
    "webAuthnPolicyPasswordlessCreateTimeout": 0,
    "webAuthnPolicyPasswordlessRequireResidentKey": "",
    "webAuthnPolicyPasswordlessRpEntityName": "",
    "webAuthnPolicyPasswordlessRpId": "",
    "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
    "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
    "webAuthnPolicyRequireResidentKey": "",
    "webAuthnPolicyRpEntityName": "",
    "webAuthnPolicyRpId": "",
    "webAuthnPolicySignatureAlgorithms": [],
    "webAuthnPolicyUserVerificationRequirement": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm"

payload <- "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm') do |req|
  req.body = "{\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"accountTheme\": \"\",\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"adminEventsDetailsEnabled\": false,\n  \"adminEventsEnabled\": false,\n  \"adminTheme\": \"\",\n  \"attributes\": {},\n  \"authenticationFlows\": [\n    {\n      \"alias\": \"\",\n      \"authenticationExecutions\": [\n        {\n          \"authenticator\": \"\",\n          \"authenticatorConfig\": \"\",\n          \"authenticatorFlow\": false,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"priority\": 0,\n          \"requirement\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ],\n      \"builtIn\": false,\n      \"description\": \"\",\n      \"id\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"id\": \"\"\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"browserSecurityHeaders\": {},\n  \"bruteForceProtected\": false,\n  \"clientAuthenticationFlow\": \"\",\n  \"clientScopeMappings\": {},\n  \"clientScopes\": [\n    {\n      \"attributes\": {},\n      \"description\": \"\",\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {\n          \"config\": {},\n          \"id\": \"\",\n          \"name\": \"\",\n          \"protocol\": \"\",\n          \"protocolMapper\": \"\"\n        }\n      ]\n    }\n  ],\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clients\": [\n    {\n      \"access\": {},\n      \"adminUrl\": \"\",\n      \"alwaysDisplayInConsole\": false,\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"authorizationServicesEnabled\": false,\n      \"authorizationSettings\": {\n        \"allowRemoteResourceManagement\": false,\n        \"clientId\": \"\",\n        \"decisionStrategy\": \"\",\n        \"id\": \"\",\n        \"name\": \"\",\n        \"policies\": [\n          {\n            \"config\": {},\n            \"decisionStrategy\": \"\",\n            \"description\": \"\",\n            \"id\": \"\",\n            \"logic\": \"\",\n            \"name\": \"\",\n            \"owner\": \"\",\n            \"policies\": [],\n            \"resources\": [],\n            \"resourcesData\": [\n              {\n                \"attributes\": {},\n                \"displayName\": \"\",\n                \"icon_uri\": \"\",\n                \"id\": \"\",\n                \"name\": \"\",\n                \"ownerManagedAccess\": false,\n                \"scopes\": [\n                  {\n                    \"displayName\": \"\",\n                    \"iconUri\": \"\",\n                    \"id\": \"\",\n                    \"name\": \"\",\n                    \"policies\": [],\n                    \"resources\": []\n                  }\n                ],\n                \"type\": \"\",\n                \"uris\": []\n              }\n            ],\n            \"scopes\": [],\n            \"scopesData\": [\n              {}\n            ],\n            \"type\": \"\"\n          }\n        ],\n        \"policyEnforcementMode\": \"\",\n        \"resources\": [\n          {}\n        ],\n        \"scopes\": [\n          {}\n        ]\n      },\n      \"baseUrl\": \"\",\n      \"bearerOnly\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"clientId\": \"\",\n      \"consentRequired\": false,\n      \"defaultClientScopes\": [],\n      \"defaultRoles\": [],\n      \"description\": \"\",\n      \"directAccessGrantsEnabled\": false,\n      \"enabled\": false,\n      \"frontchannelLogout\": false,\n      \"fullScopeAllowed\": false,\n      \"id\": \"\",\n      \"implicitFlowEnabled\": false,\n      \"name\": \"\",\n      \"nodeReRegistrationTimeout\": 0,\n      \"notBefore\": 0,\n      \"optionalClientScopes\": [],\n      \"origin\": \"\",\n      \"protocol\": \"\",\n      \"protocolMappers\": [\n        {}\n      ],\n      \"publicClient\": false,\n      \"redirectUris\": [],\n      \"registeredNodes\": {},\n      \"registrationAccessToken\": \"\",\n      \"rootUrl\": \"\",\n      \"secret\": \"\",\n      \"serviceAccountsEnabled\": false,\n      \"standardFlowEnabled\": false,\n      \"surrogateAuthRequired\": false,\n      \"webOrigins\": []\n    }\n  ],\n  \"components\": {\n    \"empty\": false,\n    \"loadFactor\": \"\",\n    \"threshold\": 0\n  },\n  \"defaultDefaultClientScopes\": [],\n  \"defaultGroups\": [],\n  \"defaultLocale\": \"\",\n  \"defaultOptionalClientScopes\": [],\n  \"defaultRoles\": [],\n  \"defaultSignatureAlgorithm\": \"\",\n  \"directGrantFlow\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"duplicateEmailsAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"emailTheme\": \"\",\n  \"enabled\": false,\n  \"enabledEventTypes\": [],\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"failureFactor\": 0,\n  \"federatedUsers\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"createdDate\": 0,\n          \"grantedClientScopes\": [],\n          \"lastUpdatedDate\": 0\n        }\n      ],\n      \"clientRoles\": {},\n      \"createdTimestamp\": 0,\n      \"credentials\": [\n        {\n          \"createdDate\": 0,\n          \"credentialData\": \"\",\n          \"id\": \"\",\n          \"priority\": 0,\n          \"secretData\": \"\",\n          \"temporary\": false,\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"enabled\": false,\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"federationLink\": \"\",\n      \"firstName\": \"\",\n      \"groups\": [],\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"notBefore\": 0,\n      \"origin\": \"\",\n      \"realmRoles\": [],\n      \"requiredActions\": [],\n      \"self\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"username\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"access\": {},\n      \"attributes\": {},\n      \"clientRoles\": {},\n      \"id\": \"\",\n      \"name\": \"\",\n      \"path\": \"\",\n      \"realmRoles\": [],\n      \"subGroups\": []\n    }\n  ],\n  \"id\": \"\",\n  \"identityProviderMappers\": [\n    {\n      \"config\": {},\n      \"id\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"addReadTokenRoleOnCreate\": false,\n      \"alias\": \"\",\n      \"config\": {},\n      \"displayName\": \"\",\n      \"enabled\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"internalId\": \"\",\n      \"linkOnly\": false,\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"providerId\": \"\",\n      \"storeToken\": false,\n      \"trustEmail\": false\n    }\n  ],\n  \"internationalizationEnabled\": false,\n  \"keycloakVersion\": \"\",\n  \"loginTheme\": \"\",\n  \"loginWithEmailAllowed\": false,\n  \"maxDeltaTimeSeconds\": 0,\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"notBefore\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespan\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyType\": \"\",\n  \"otpSupportedApplications\": [],\n  \"passwordPolicy\": \"\",\n  \"permanentLockout\": false,\n  \"protocolMappers\": [\n    {}\n  ],\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"realm\": \"\",\n  \"refreshTokenMaxReuse\": 0,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"registrationFlow\": \"\",\n  \"rememberMe\": false,\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"config\": {},\n      \"defaultAction\": false,\n      \"enabled\": false,\n      \"name\": \"\",\n      \"priority\": 0,\n      \"providerId\": \"\"\n    }\n  ],\n  \"resetCredentialsFlow\": \"\",\n  \"resetPasswordAllowed\": false,\n  \"revokeRefreshToken\": false,\n  \"roles\": {\n    \"client\": {},\n    \"realm\": [\n      {\n        \"attributes\": {},\n        \"clientRole\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"client\": {},\n          \"realm\": []\n        },\n        \"containerId\": \"\",\n        \"description\": \"\",\n        \"id\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"scopeMappings\": [\n    {\n      \"client\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": [],\n      \"self\": \"\"\n    }\n  ],\n  \"smtpServer\": {},\n  \"sslRequired\": \"\",\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"supportedLocales\": [],\n  \"userFederationMappers\": [\n    {\n      \"config\": {},\n      \"federationMapperType\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"userFederationProviders\": [\n    {\n      \"changedSyncPeriod\": 0,\n      \"config\": {},\n      \"displayName\": \"\",\n      \"fullSyncPeriod\": 0,\n      \"id\": \"\",\n      \"lastSync\": 0,\n      \"priority\": 0,\n      \"providerName\": \"\"\n    }\n  ],\n  \"userManagedAccessAllowed\": false,\n  \"users\": [\n    {}\n  ],\n  \"verifyEmail\": false,\n  \"waitIncrementSeconds\": 0,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyUserVerificationRequirement\": \"\"\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}}/:realm";

    let payload = json!({
        "accessCodeLifespan": 0,
        "accessCodeLifespanLogin": 0,
        "accessCodeLifespanUserAction": 0,
        "accessTokenLifespan": 0,
        "accessTokenLifespanForImplicitFlow": 0,
        "accountTheme": "",
        "actionTokenGeneratedByAdminLifespan": 0,
        "actionTokenGeneratedByUserLifespan": 0,
        "adminEventsDetailsEnabled": false,
        "adminEventsEnabled": false,
        "adminTheme": "",
        "attributes": json!({}),
        "authenticationFlows": (
            json!({
                "alias": "",
                "authenticationExecutions": (
                    json!({
                        "authenticator": "",
                        "authenticatorConfig": "",
                        "authenticatorFlow": false,
                        "autheticatorFlow": false,
                        "flowAlias": "",
                        "priority": 0,
                        "requirement": "",
                        "userSetupAllowed": false
                    })
                ),
                "builtIn": false,
                "description": "",
                "id": "",
                "providerId": "",
                "topLevel": false
            })
        ),
        "authenticatorConfig": (
            json!({
                "alias": "",
                "config": json!({}),
                "id": ""
            })
        ),
        "browserFlow": "",
        "browserSecurityHeaders": json!({}),
        "bruteForceProtected": false,
        "clientAuthenticationFlow": "",
        "clientScopeMappings": json!({}),
        "clientScopes": (
            json!({
                "attributes": json!({}),
                "description": "",
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMappers": (
                    json!({
                        "config": json!({}),
                        "id": "",
                        "name": "",
                        "protocol": "",
                        "protocolMapper": ""
                    })
                )
            })
        ),
        "clientSessionIdleTimeout": 0,
        "clientSessionMaxLifespan": 0,
        "clients": (
            json!({
                "access": json!({}),
                "adminUrl": "",
                "alwaysDisplayInConsole": false,
                "attributes": json!({}),
                "authenticationFlowBindingOverrides": json!({}),
                "authorizationServicesEnabled": false,
                "authorizationSettings": json!({
                    "allowRemoteResourceManagement": false,
                    "clientId": "",
                    "decisionStrategy": "",
                    "id": "",
                    "name": "",
                    "policies": (
                        json!({
                            "config": json!({}),
                            "decisionStrategy": "",
                            "description": "",
                            "id": "",
                            "logic": "",
                            "name": "",
                            "owner": "",
                            "policies": (),
                            "resources": (),
                            "resourcesData": (
                                json!({
                                    "attributes": json!({}),
                                    "displayName": "",
                                    "icon_uri": "",
                                    "id": "",
                                    "name": "",
                                    "ownerManagedAccess": false,
                                    "scopes": (
                                        json!({
                                            "displayName": "",
                                            "iconUri": "",
                                            "id": "",
                                            "name": "",
                                            "policies": (),
                                            "resources": ()
                                        })
                                    ),
                                    "type": "",
                                    "uris": ()
                                })
                            ),
                            "scopes": (),
                            "scopesData": (json!({})),
                            "type": ""
                        })
                    ),
                    "policyEnforcementMode": "",
                    "resources": (json!({})),
                    "scopes": (json!({}))
                }),
                "baseUrl": "",
                "bearerOnly": false,
                "clientAuthenticatorType": "",
                "clientId": "",
                "consentRequired": false,
                "defaultClientScopes": (),
                "defaultRoles": (),
                "description": "",
                "directAccessGrantsEnabled": false,
                "enabled": false,
                "frontchannelLogout": false,
                "fullScopeAllowed": false,
                "id": "",
                "implicitFlowEnabled": false,
                "name": "",
                "nodeReRegistrationTimeout": 0,
                "notBefore": 0,
                "optionalClientScopes": (),
                "origin": "",
                "protocol": "",
                "protocolMappers": (json!({})),
                "publicClient": false,
                "redirectUris": (),
                "registeredNodes": json!({}),
                "registrationAccessToken": "",
                "rootUrl": "",
                "secret": "",
                "serviceAccountsEnabled": false,
                "standardFlowEnabled": false,
                "surrogateAuthRequired": false,
                "webOrigins": ()
            })
        ),
        "components": json!({
            "empty": false,
            "loadFactor": "",
            "threshold": 0
        }),
        "defaultDefaultClientScopes": (),
        "defaultGroups": (),
        "defaultLocale": "",
        "defaultOptionalClientScopes": (),
        "defaultRoles": (),
        "defaultSignatureAlgorithm": "",
        "directGrantFlow": "",
        "displayName": "",
        "displayNameHtml": "",
        "dockerAuthenticationFlow": "",
        "duplicateEmailsAllowed": false,
        "editUsernameAllowed": false,
        "emailTheme": "",
        "enabled": false,
        "enabledEventTypes": (),
        "eventsEnabled": false,
        "eventsExpiration": 0,
        "eventsListeners": (),
        "failureFactor": 0,
        "federatedUsers": (
            json!({
                "access": json!({}),
                "attributes": json!({}),
                "clientConsents": (
                    json!({
                        "clientId": "",
                        "createdDate": 0,
                        "grantedClientScopes": (),
                        "lastUpdatedDate": 0
                    })
                ),
                "clientRoles": json!({}),
                "createdTimestamp": 0,
                "credentials": (
                    json!({
                        "createdDate": 0,
                        "credentialData": "",
                        "id": "",
                        "priority": 0,
                        "secretData": "",
                        "temporary": false,
                        "type": "",
                        "userLabel": "",
                        "value": ""
                    })
                ),
                "disableableCredentialTypes": (),
                "email": "",
                "emailVerified": false,
                "enabled": false,
                "federatedIdentities": (
                    json!({
                        "identityProvider": "",
                        "userId": "",
                        "userName": ""
                    })
                ),
                "federationLink": "",
                "firstName": "",
                "groups": (),
                "id": "",
                "lastName": "",
                "notBefore": 0,
                "origin": "",
                "realmRoles": (),
                "requiredActions": (),
                "self": "",
                "serviceAccountClientId": "",
                "username": ""
            })
        ),
        "groups": (
            json!({
                "access": json!({}),
                "attributes": json!({}),
                "clientRoles": json!({}),
                "id": "",
                "name": "",
                "path": "",
                "realmRoles": (),
                "subGroups": ()
            })
        ),
        "id": "",
        "identityProviderMappers": (
            json!({
                "config": json!({}),
                "id": "",
                "identityProviderAlias": "",
                "identityProviderMapper": "",
                "name": ""
            })
        ),
        "identityProviders": (
            json!({
                "addReadTokenRoleOnCreate": false,
                "alias": "",
                "config": json!({}),
                "displayName": "",
                "enabled": false,
                "firstBrokerLoginFlowAlias": "",
                "internalId": "",
                "linkOnly": false,
                "postBrokerLoginFlowAlias": "",
                "providerId": "",
                "storeToken": false,
                "trustEmail": false
            })
        ),
        "internationalizationEnabled": false,
        "keycloakVersion": "",
        "loginTheme": "",
        "loginWithEmailAllowed": false,
        "maxDeltaTimeSeconds": 0,
        "maxFailureWaitSeconds": 0,
        "minimumQuickLoginWaitSeconds": 0,
        "notBefore": 0,
        "offlineSessionIdleTimeout": 0,
        "offlineSessionMaxLifespan": 0,
        "offlineSessionMaxLifespanEnabled": false,
        "otpPolicyAlgorithm": "",
        "otpPolicyDigits": 0,
        "otpPolicyInitialCounter": 0,
        "otpPolicyLookAheadWindow": 0,
        "otpPolicyPeriod": 0,
        "otpPolicyType": "",
        "otpSupportedApplications": (),
        "passwordPolicy": "",
        "permanentLockout": false,
        "protocolMappers": (json!({})),
        "quickLoginCheckMilliSeconds": 0,
        "realm": "",
        "refreshTokenMaxReuse": 0,
        "registrationAllowed": false,
        "registrationEmailAsUsername": false,
        "registrationFlow": "",
        "rememberMe": false,
        "requiredActions": (
            json!({
                "alias": "",
                "config": json!({}),
                "defaultAction": false,
                "enabled": false,
                "name": "",
                "priority": 0,
                "providerId": ""
            })
        ),
        "resetCredentialsFlow": "",
        "resetPasswordAllowed": false,
        "revokeRefreshToken": false,
        "roles": json!({
            "client": json!({}),
            "realm": (
                json!({
                    "attributes": json!({}),
                    "clientRole": false,
                    "composite": false,
                    "composites": json!({
                        "client": json!({}),
                        "realm": ()
                    }),
                    "containerId": "",
                    "description": "",
                    "id": "",
                    "name": ""
                })
            )
        }),
        "scopeMappings": (
            json!({
                "client": "",
                "clientScope": "",
                "roles": (),
                "self": ""
            })
        ),
        "smtpServer": json!({}),
        "sslRequired": "",
        "ssoSessionIdleTimeout": 0,
        "ssoSessionIdleTimeoutRememberMe": 0,
        "ssoSessionMaxLifespan": 0,
        "ssoSessionMaxLifespanRememberMe": 0,
        "supportedLocales": (),
        "userFederationMappers": (
            json!({
                "config": json!({}),
                "federationMapperType": "",
                "federationProviderDisplayName": "",
                "id": "",
                "name": ""
            })
        ),
        "userFederationProviders": (
            json!({
                "changedSyncPeriod": 0,
                "config": json!({}),
                "displayName": "",
                "fullSyncPeriod": 0,
                "id": "",
                "lastSync": 0,
                "priority": 0,
                "providerName": ""
            })
        ),
        "userManagedAccessAllowed": false,
        "users": (json!({})),
        "verifyEmail": false,
        "waitIncrementSeconds": 0,
        "webAuthnPolicyAcceptableAaguids": (),
        "webAuthnPolicyAttestationConveyancePreference": "",
        "webAuthnPolicyAuthenticatorAttachment": "",
        "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
        "webAuthnPolicyCreateTimeout": 0,
        "webAuthnPolicyPasswordlessAcceptableAaguids": (),
        "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
        "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
        "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
        "webAuthnPolicyPasswordlessCreateTimeout": 0,
        "webAuthnPolicyPasswordlessRequireResidentKey": "",
        "webAuthnPolicyPasswordlessRpEntityName": "",
        "webAuthnPolicyPasswordlessRpId": "",
        "webAuthnPolicyPasswordlessSignatureAlgorithms": (),
        "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
        "webAuthnPolicyRequireResidentKey": "",
        "webAuthnPolicyRpEntityName": "",
        "webAuthnPolicyRpId": "",
        "webAuthnPolicySignatureAlgorithms": (),
        "webAuthnPolicyUserVerificationRequirement": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm \
  --header 'content-type: application/json' \
  --data '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}'
echo '{
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": {},
  "authenticationFlows": [
    {
      "alias": "",
      "authenticationExecutions": [
        {
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        }
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    }
  ],
  "authenticatorConfig": [
    {
      "alias": "",
      "config": {},
      "id": ""
    }
  ],
  "browserFlow": "",
  "browserSecurityHeaders": {},
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": {},
  "clientScopes": [
    {
      "attributes": {},
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        {
          "config": {},
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        }
      ]
    }
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    {
      "access": {},
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "authorizationServicesEnabled": false,
      "authorizationSettings": {
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          {
            "config": {},
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              {
                "attributes": {},
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  {
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  }
                ],
                "type": "",
                "uris": []
              }
            ],
            "scopes": [],
            "scopesData": [
              {}
            ],
            "type": ""
          }
        ],
        "policyEnforcementMode": "",
        "resources": [
          {}
        ],
        "scopes": [
          {}
        ]
      },
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [
        {}
      ],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": {},
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    }
  ],
  "components": {
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  },
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    {
      "access": {},
      "attributes": {},
      "clientConsents": [
        {
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        }
      ],
      "clientRoles": {},
      "createdTimestamp": 0,
      "credentials": [
        {
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        }
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    }
  ],
  "groups": [
    {
      "access": {},
      "attributes": {},
      "clientRoles": {},
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    }
  ],
  "id": "",
  "identityProviderMappers": [
    {
      "config": {},
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    }
  ],
  "identityProviders": [
    {
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": {},
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    }
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [
    {}
  ],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    {
      "alias": "",
      "config": {},
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    }
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": {
    "client": {},
    "realm": [
      {
        "attributes": {},
        "clientRole": false,
        "composite": false,
        "composites": {
          "client": {},
          "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      }
    ]
  },
  "scopeMappings": [
    {
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    }
  ],
  "smtpServer": {},
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    {
      "config": {},
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    }
  ],
  "userFederationProviders": [
    {
      "changedSyncPeriod": 0,
      "config": {},
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    }
  ],
  "userManagedAccessAllowed": false,
  "users": [
    {}
  ],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
}' |  \
  http PUT {{baseUrl}}/:realm \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accessCodeLifespan": 0,\n  "accessCodeLifespanLogin": 0,\n  "accessCodeLifespanUserAction": 0,\n  "accessTokenLifespan": 0,\n  "accessTokenLifespanForImplicitFlow": 0,\n  "accountTheme": "",\n  "actionTokenGeneratedByAdminLifespan": 0,\n  "actionTokenGeneratedByUserLifespan": 0,\n  "adminEventsDetailsEnabled": false,\n  "adminEventsEnabled": false,\n  "adminTheme": "",\n  "attributes": {},\n  "authenticationFlows": [\n    {\n      "alias": "",\n      "authenticationExecutions": [\n        {\n          "authenticator": "",\n          "authenticatorConfig": "",\n          "authenticatorFlow": false,\n          "autheticatorFlow": false,\n          "flowAlias": "",\n          "priority": 0,\n          "requirement": "",\n          "userSetupAllowed": false\n        }\n      ],\n      "builtIn": false,\n      "description": "",\n      "id": "",\n      "providerId": "",\n      "topLevel": false\n    }\n  ],\n  "authenticatorConfig": [\n    {\n      "alias": "",\n      "config": {},\n      "id": ""\n    }\n  ],\n  "browserFlow": "",\n  "browserSecurityHeaders": {},\n  "bruteForceProtected": false,\n  "clientAuthenticationFlow": "",\n  "clientScopeMappings": {},\n  "clientScopes": [\n    {\n      "attributes": {},\n      "description": "",\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMappers": [\n        {\n          "config": {},\n          "id": "",\n          "name": "",\n          "protocol": "",\n          "protocolMapper": ""\n        }\n      ]\n    }\n  ],\n  "clientSessionIdleTimeout": 0,\n  "clientSessionMaxLifespan": 0,\n  "clients": [\n    {\n      "access": {},\n      "adminUrl": "",\n      "alwaysDisplayInConsole": false,\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "authorizationServicesEnabled": false,\n      "authorizationSettings": {\n        "allowRemoteResourceManagement": false,\n        "clientId": "",\n        "decisionStrategy": "",\n        "id": "",\n        "name": "",\n        "policies": [\n          {\n            "config": {},\n            "decisionStrategy": "",\n            "description": "",\n            "id": "",\n            "logic": "",\n            "name": "",\n            "owner": "",\n            "policies": [],\n            "resources": [],\n            "resourcesData": [\n              {\n                "attributes": {},\n                "displayName": "",\n                "icon_uri": "",\n                "id": "",\n                "name": "",\n                "ownerManagedAccess": false,\n                "scopes": [\n                  {\n                    "displayName": "",\n                    "iconUri": "",\n                    "id": "",\n                    "name": "",\n                    "policies": [],\n                    "resources": []\n                  }\n                ],\n                "type": "",\n                "uris": []\n              }\n            ],\n            "scopes": [],\n            "scopesData": [\n              {}\n            ],\n            "type": ""\n          }\n        ],\n        "policyEnforcementMode": "",\n        "resources": [\n          {}\n        ],\n        "scopes": [\n          {}\n        ]\n      },\n      "baseUrl": "",\n      "bearerOnly": false,\n      "clientAuthenticatorType": "",\n      "clientId": "",\n      "consentRequired": false,\n      "defaultClientScopes": [],\n      "defaultRoles": [],\n      "description": "",\n      "directAccessGrantsEnabled": false,\n      "enabled": false,\n      "frontchannelLogout": false,\n      "fullScopeAllowed": false,\n      "id": "",\n      "implicitFlowEnabled": false,\n      "name": "",\n      "nodeReRegistrationTimeout": 0,\n      "notBefore": 0,\n      "optionalClientScopes": [],\n      "origin": "",\n      "protocol": "",\n      "protocolMappers": [\n        {}\n      ],\n      "publicClient": false,\n      "redirectUris": [],\n      "registeredNodes": {},\n      "registrationAccessToken": "",\n      "rootUrl": "",\n      "secret": "",\n      "serviceAccountsEnabled": false,\n      "standardFlowEnabled": false,\n      "surrogateAuthRequired": false,\n      "webOrigins": []\n    }\n  ],\n  "components": {\n    "empty": false,\n    "loadFactor": "",\n    "threshold": 0\n  },\n  "defaultDefaultClientScopes": [],\n  "defaultGroups": [],\n  "defaultLocale": "",\n  "defaultOptionalClientScopes": [],\n  "defaultRoles": [],\n  "defaultSignatureAlgorithm": "",\n  "directGrantFlow": "",\n  "displayName": "",\n  "displayNameHtml": "",\n  "dockerAuthenticationFlow": "",\n  "duplicateEmailsAllowed": false,\n  "editUsernameAllowed": false,\n  "emailTheme": "",\n  "enabled": false,\n  "enabledEventTypes": [],\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "failureFactor": 0,\n  "federatedUsers": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "createdDate": 0,\n          "grantedClientScopes": [],\n          "lastUpdatedDate": 0\n        }\n      ],\n      "clientRoles": {},\n      "createdTimestamp": 0,\n      "credentials": [\n        {\n          "createdDate": 0,\n          "credentialData": "",\n          "id": "",\n          "priority": 0,\n          "secretData": "",\n          "temporary": false,\n          "type": "",\n          "userLabel": "",\n          "value": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "email": "",\n      "emailVerified": false,\n      "enabled": false,\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "federationLink": "",\n      "firstName": "",\n      "groups": [],\n      "id": "",\n      "lastName": "",\n      "notBefore": 0,\n      "origin": "",\n      "realmRoles": [],\n      "requiredActions": [],\n      "self": "",\n      "serviceAccountClientId": "",\n      "username": ""\n    }\n  ],\n  "groups": [\n    {\n      "access": {},\n      "attributes": {},\n      "clientRoles": {},\n      "id": "",\n      "name": "",\n      "path": "",\n      "realmRoles": [],\n      "subGroups": []\n    }\n  ],\n  "id": "",\n  "identityProviderMappers": [\n    {\n      "config": {},\n      "id": "",\n      "identityProviderAlias": "",\n      "identityProviderMapper": "",\n      "name": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "addReadTokenRoleOnCreate": false,\n      "alias": "",\n      "config": {},\n      "displayName": "",\n      "enabled": false,\n      "firstBrokerLoginFlowAlias": "",\n      "internalId": "",\n      "linkOnly": false,\n      "postBrokerLoginFlowAlias": "",\n      "providerId": "",\n      "storeToken": false,\n      "trustEmail": false\n    }\n  ],\n  "internationalizationEnabled": false,\n  "keycloakVersion": "",\n  "loginTheme": "",\n  "loginWithEmailAllowed": false,\n  "maxDeltaTimeSeconds": 0,\n  "maxFailureWaitSeconds": 0,\n  "minimumQuickLoginWaitSeconds": 0,\n  "notBefore": 0,\n  "offlineSessionIdleTimeout": 0,\n  "offlineSessionMaxLifespan": 0,\n  "offlineSessionMaxLifespanEnabled": false,\n  "otpPolicyAlgorithm": "",\n  "otpPolicyDigits": 0,\n  "otpPolicyInitialCounter": 0,\n  "otpPolicyLookAheadWindow": 0,\n  "otpPolicyPeriod": 0,\n  "otpPolicyType": "",\n  "otpSupportedApplications": [],\n  "passwordPolicy": "",\n  "permanentLockout": false,\n  "protocolMappers": [\n    {}\n  ],\n  "quickLoginCheckMilliSeconds": 0,\n  "realm": "",\n  "refreshTokenMaxReuse": 0,\n  "registrationAllowed": false,\n  "registrationEmailAsUsername": false,\n  "registrationFlow": "",\n  "rememberMe": false,\n  "requiredActions": [\n    {\n      "alias": "",\n      "config": {},\n      "defaultAction": false,\n      "enabled": false,\n      "name": "",\n      "priority": 0,\n      "providerId": ""\n    }\n  ],\n  "resetCredentialsFlow": "",\n  "resetPasswordAllowed": false,\n  "revokeRefreshToken": false,\n  "roles": {\n    "client": {},\n    "realm": [\n      {\n        "attributes": {},\n        "clientRole": false,\n        "composite": false,\n        "composites": {\n          "client": {},\n          "realm": []\n        },\n        "containerId": "",\n        "description": "",\n        "id": "",\n        "name": ""\n      }\n    ]\n  },\n  "scopeMappings": [\n    {\n      "client": "",\n      "clientScope": "",\n      "roles": [],\n      "self": ""\n    }\n  ],\n  "smtpServer": {},\n  "sslRequired": "",\n  "ssoSessionIdleTimeout": 0,\n  "ssoSessionIdleTimeoutRememberMe": 0,\n  "ssoSessionMaxLifespan": 0,\n  "ssoSessionMaxLifespanRememberMe": 0,\n  "supportedLocales": [],\n  "userFederationMappers": [\n    {\n      "config": {},\n      "federationMapperType": "",\n      "federationProviderDisplayName": "",\n      "id": "",\n      "name": ""\n    }\n  ],\n  "userFederationProviders": [\n    {\n      "changedSyncPeriod": 0,\n      "config": {},\n      "displayName": "",\n      "fullSyncPeriod": 0,\n      "id": "",\n      "lastSync": 0,\n      "priority": 0,\n      "providerName": ""\n    }\n  ],\n  "userManagedAccessAllowed": false,\n  "users": [\n    {}\n  ],\n  "verifyEmail": false,\n  "waitIncrementSeconds": 0,\n  "webAuthnPolicyAcceptableAaguids": [],\n  "webAuthnPolicyAttestationConveyancePreference": "",\n  "webAuthnPolicyAuthenticatorAttachment": "",\n  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessAcceptableAaguids": [],\n  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",\n  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",\n  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyPasswordlessCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessRequireResidentKey": "",\n  "webAuthnPolicyPasswordlessRpEntityName": "",\n  "webAuthnPolicyPasswordlessRpId": "",\n  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],\n  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",\n  "webAuthnPolicyRequireResidentKey": "",\n  "webAuthnPolicyRpEntityName": "",\n  "webAuthnPolicyRpId": "",\n  "webAuthnPolicySignatureAlgorithms": [],\n  "webAuthnPolicyUserVerificationRequirement": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accessCodeLifespan": 0,
  "accessCodeLifespanLogin": 0,
  "accessCodeLifespanUserAction": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "accountTheme": "",
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "adminEventsDetailsEnabled": false,
  "adminEventsEnabled": false,
  "adminTheme": "",
  "attributes": [],
  "authenticationFlows": [
    [
      "alias": "",
      "authenticationExecutions": [
        [
          "authenticator": "",
          "authenticatorConfig": "",
          "authenticatorFlow": false,
          "autheticatorFlow": false,
          "flowAlias": "",
          "priority": 0,
          "requirement": "",
          "userSetupAllowed": false
        ]
      ],
      "builtIn": false,
      "description": "",
      "id": "",
      "providerId": "",
      "topLevel": false
    ]
  ],
  "authenticatorConfig": [
    [
      "alias": "",
      "config": [],
      "id": ""
    ]
  ],
  "browserFlow": "",
  "browserSecurityHeaders": [],
  "bruteForceProtected": false,
  "clientAuthenticationFlow": "",
  "clientScopeMappings": [],
  "clientScopes": [
    [
      "attributes": [],
      "description": "",
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMappers": [
        [
          "config": [],
          "id": "",
          "name": "",
          "protocol": "",
          "protocolMapper": ""
        ]
      ]
    ]
  ],
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clients": [
    [
      "access": [],
      "adminUrl": "",
      "alwaysDisplayInConsole": false,
      "attributes": [],
      "authenticationFlowBindingOverrides": [],
      "authorizationServicesEnabled": false,
      "authorizationSettings": [
        "allowRemoteResourceManagement": false,
        "clientId": "",
        "decisionStrategy": "",
        "id": "",
        "name": "",
        "policies": [
          [
            "config": [],
            "decisionStrategy": "",
            "description": "",
            "id": "",
            "logic": "",
            "name": "",
            "owner": "",
            "policies": [],
            "resources": [],
            "resourcesData": [
              [
                "attributes": [],
                "displayName": "",
                "icon_uri": "",
                "id": "",
                "name": "",
                "ownerManagedAccess": false,
                "scopes": [
                  [
                    "displayName": "",
                    "iconUri": "",
                    "id": "",
                    "name": "",
                    "policies": [],
                    "resources": []
                  ]
                ],
                "type": "",
                "uris": []
              ]
            ],
            "scopes": [],
            "scopesData": [[]],
            "type": ""
          ]
        ],
        "policyEnforcementMode": "",
        "resources": [[]],
        "scopes": [[]]
      ],
      "baseUrl": "",
      "bearerOnly": false,
      "clientAuthenticatorType": "",
      "clientId": "",
      "consentRequired": false,
      "defaultClientScopes": [],
      "defaultRoles": [],
      "description": "",
      "directAccessGrantsEnabled": false,
      "enabled": false,
      "frontchannelLogout": false,
      "fullScopeAllowed": false,
      "id": "",
      "implicitFlowEnabled": false,
      "name": "",
      "nodeReRegistrationTimeout": 0,
      "notBefore": 0,
      "optionalClientScopes": [],
      "origin": "",
      "protocol": "",
      "protocolMappers": [[]],
      "publicClient": false,
      "redirectUris": [],
      "registeredNodes": [],
      "registrationAccessToken": "",
      "rootUrl": "",
      "secret": "",
      "serviceAccountsEnabled": false,
      "standardFlowEnabled": false,
      "surrogateAuthRequired": false,
      "webOrigins": []
    ]
  ],
  "components": [
    "empty": false,
    "loadFactor": "",
    "threshold": 0
  ],
  "defaultDefaultClientScopes": [],
  "defaultGroups": [],
  "defaultLocale": "",
  "defaultOptionalClientScopes": [],
  "defaultRoles": [],
  "defaultSignatureAlgorithm": "",
  "directGrantFlow": "",
  "displayName": "",
  "displayNameHtml": "",
  "dockerAuthenticationFlow": "",
  "duplicateEmailsAllowed": false,
  "editUsernameAllowed": false,
  "emailTheme": "",
  "enabled": false,
  "enabledEventTypes": [],
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "failureFactor": 0,
  "federatedUsers": [
    [
      "access": [],
      "attributes": [],
      "clientConsents": [
        [
          "clientId": "",
          "createdDate": 0,
          "grantedClientScopes": [],
          "lastUpdatedDate": 0
        ]
      ],
      "clientRoles": [],
      "createdTimestamp": 0,
      "credentials": [
        [
          "createdDate": 0,
          "credentialData": "",
          "id": "",
          "priority": 0,
          "secretData": "",
          "temporary": false,
          "type": "",
          "userLabel": "",
          "value": ""
        ]
      ],
      "disableableCredentialTypes": [],
      "email": "",
      "emailVerified": false,
      "enabled": false,
      "federatedIdentities": [
        [
          "identityProvider": "",
          "userId": "",
          "userName": ""
        ]
      ],
      "federationLink": "",
      "firstName": "",
      "groups": [],
      "id": "",
      "lastName": "",
      "notBefore": 0,
      "origin": "",
      "realmRoles": [],
      "requiredActions": [],
      "self": "",
      "serviceAccountClientId": "",
      "username": ""
    ]
  ],
  "groups": [
    [
      "access": [],
      "attributes": [],
      "clientRoles": [],
      "id": "",
      "name": "",
      "path": "",
      "realmRoles": [],
      "subGroups": []
    ]
  ],
  "id": "",
  "identityProviderMappers": [
    [
      "config": [],
      "id": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "name": ""
    ]
  ],
  "identityProviders": [
    [
      "addReadTokenRoleOnCreate": false,
      "alias": "",
      "config": [],
      "displayName": "",
      "enabled": false,
      "firstBrokerLoginFlowAlias": "",
      "internalId": "",
      "linkOnly": false,
      "postBrokerLoginFlowAlias": "",
      "providerId": "",
      "storeToken": false,
      "trustEmail": false
    ]
  ],
  "internationalizationEnabled": false,
  "keycloakVersion": "",
  "loginTheme": "",
  "loginWithEmailAllowed": false,
  "maxDeltaTimeSeconds": 0,
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "notBefore": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespan": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "otpPolicyAlgorithm": "",
  "otpPolicyDigits": 0,
  "otpPolicyInitialCounter": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyType": "",
  "otpSupportedApplications": [],
  "passwordPolicy": "",
  "permanentLockout": false,
  "protocolMappers": [[]],
  "quickLoginCheckMilliSeconds": 0,
  "realm": "",
  "refreshTokenMaxReuse": 0,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "registrationFlow": "",
  "rememberMe": false,
  "requiredActions": [
    [
      "alias": "",
      "config": [],
      "defaultAction": false,
      "enabled": false,
      "name": "",
      "priority": 0,
      "providerId": ""
    ]
  ],
  "resetCredentialsFlow": "",
  "resetPasswordAllowed": false,
  "revokeRefreshToken": false,
  "roles": [
    "client": [],
    "realm": [
      [
        "attributes": [],
        "clientRole": false,
        "composite": false,
        "composites": [
          "client": [],
          "realm": []
        ],
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
      ]
    ]
  ],
  "scopeMappings": [
    [
      "client": "",
      "clientScope": "",
      "roles": [],
      "self": ""
    ]
  ],
  "smtpServer": [],
  "sslRequired": "",
  "ssoSessionIdleTimeout": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "supportedLocales": [],
  "userFederationMappers": [
    [
      "config": [],
      "federationMapperType": "",
      "federationProviderDisplayName": "",
      "id": "",
      "name": ""
    ]
  ],
  "userFederationProviders": [
    [
      "changedSyncPeriod": 0,
      "config": [],
      "displayName": "",
      "fullSyncPeriod": 0,
      "id": "",
      "lastSync": 0,
      "priority": 0,
      "providerName": ""
    ]
  ],
  "userManagedAccessAllowed": false,
  "users": [[]],
  "verifyEmail": false,
  "waitIncrementSeconds": 0,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicyRpId": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyUserVerificationRequirement": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-default-default-client-scopes--clientScopeId
{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

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}}/:realm/default-default-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

	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/:realm/default-default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"))
    .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}}/:realm/default-default-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
  .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}}/:realm/default-default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId';
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}}/:realm/default-default-client-scopes/:clientScopeId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-default-client-scopes/:clientScopeId',
  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}}/:realm/default-default-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');

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}}/:realm/default-default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId';
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}}/:realm/default-default-client-scopes/:clientScopeId"]
                                                       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}}/:realm/default-default-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId",
  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}}/:realm/default-default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/default-default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")

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/:realm/default-default-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId";

    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}}/:realm/default-default-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-default-groups--groupId
{{baseUrl}}/:realm/default-groups/:groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/default-groups/:groupId")
require "http/client"

url = "{{baseUrl}}/:realm/default-groups/:groupId"

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}}/:realm/default-groups/:groupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-groups/:groupId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-groups/:groupId"

	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/:realm/default-groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/default-groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-groups/:groupId"))
    .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}}/:realm/default-groups/:groupId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/default-groups/:groupId")
  .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}}/:realm/default-groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/default-groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-groups/:groupId';
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}}/:realm/default-groups/:groupId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-groups/:groupId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-groups/:groupId',
  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}}/:realm/default-groups/:groupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/default-groups/:groupId');

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}}/:realm/default-groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-groups/:groupId';
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}}/:realm/default-groups/:groupId"]
                                                       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}}/:realm/default-groups/:groupId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-groups/:groupId",
  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}}/:realm/default-groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-groups/:groupId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-groups/:groupId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-groups/:groupId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-groups/:groupId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/default-groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-groups/:groupId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-groups/:groupId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-groups/:groupId")

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/:realm/default-groups/:groupId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-groups/:groupId";

    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}}/:realm/default-groups/:groupId
http DELETE {{baseUrl}}/:realm/default-groups/:groupId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/default-groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-groups/:groupId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-default-optional-client-scopes--clientScopeId
{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

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}}/:realm/default-optional-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

	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/:realm/default-optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"))
    .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}}/:realm/default-optional-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
  .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}}/:realm/default-optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId';
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}}/:realm/default-optional-client-scopes/:clientScopeId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-optional-client-scopes/:clientScopeId',
  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}}/:realm/default-optional-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');

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}}/:realm/default-optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId';
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}}/:realm/default-optional-client-scopes/:clientScopeId"]
                                                       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}}/:realm/default-optional-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId",
  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}}/:realm/default-optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/default-optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")

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/:realm/default-optional-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId";

    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}}/:realm/default-optional-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")! 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 get --realm-credential-registrators
{{baseUrl}}/:realm/credential-registrators
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/credential-registrators");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/credential-registrators")
require "http/client"

url = "{{baseUrl}}/:realm/credential-registrators"

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}}/:realm/credential-registrators"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/credential-registrators");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/credential-registrators"

	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/:realm/credential-registrators HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/credential-registrators")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/credential-registrators"))
    .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}}/:realm/credential-registrators")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/credential-registrators")
  .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}}/:realm/credential-registrators');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/credential-registrators'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/credential-registrators';
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}}/:realm/credential-registrators',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/credential-registrators")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/credential-registrators',
  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}}/:realm/credential-registrators'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/credential-registrators');

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}}/:realm/credential-registrators'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/credential-registrators';
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}}/:realm/credential-registrators"]
                                                       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}}/:realm/credential-registrators" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/credential-registrators",
  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}}/:realm/credential-registrators');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/credential-registrators');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/credential-registrators');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/credential-registrators' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/credential-registrators' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/credential-registrators")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/credential-registrators"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/credential-registrators"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/credential-registrators")

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/:realm/credential-registrators') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/credential-registrators";

    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}}/:realm/credential-registrators
http GET {{baseUrl}}/:realm/credential-registrators
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/credential-registrators
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/credential-registrators")! 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 get --realm-group-by-path--path
{{baseUrl}}/:realm/group-by-path/:path
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/group-by-path/:path");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/group-by-path/:path")
require "http/client"

url = "{{baseUrl}}/:realm/group-by-path/:path"

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}}/:realm/group-by-path/:path"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/group-by-path/:path");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/group-by-path/:path"

	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/:realm/group-by-path/:path HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/group-by-path/:path")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/group-by-path/:path"))
    .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}}/:realm/group-by-path/:path")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/group-by-path/:path")
  .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}}/:realm/group-by-path/:path');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/group-by-path/:path'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/group-by-path/:path';
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}}/:realm/group-by-path/:path',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/group-by-path/:path")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/group-by-path/:path',
  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}}/:realm/group-by-path/:path'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/group-by-path/:path');

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}}/:realm/group-by-path/:path'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/group-by-path/:path';
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}}/:realm/group-by-path/:path"]
                                                       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}}/:realm/group-by-path/:path" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/group-by-path/:path",
  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}}/:realm/group-by-path/:path');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/group-by-path/:path');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/group-by-path/:path');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/group-by-path/:path' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/group-by-path/:path' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/group-by-path/:path")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/group-by-path/:path"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/group-by-path/:path"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/group-by-path/:path")

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/:realm/group-by-path/:path') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/group-by-path/:path";

    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}}/:realm/group-by-path/:path
http GET {{baseUrl}}/:realm/group-by-path/:path
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/group-by-path/:path
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/group-by-path/:path")! 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 get --realm-users-management-permissions
{{baseUrl}}/:realm/users-management-permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users-management-permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users-management-permissions")
require "http/client"

url = "{{baseUrl}}/:realm/users-management-permissions"

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}}/:realm/users-management-permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users-management-permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users-management-permissions"

	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/:realm/users-management-permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users-management-permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users-management-permissions"))
    .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}}/:realm/users-management-permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users-management-permissions")
  .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}}/:realm/users-management-permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users-management-permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users-management-permissions';
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}}/:realm/users-management-permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users-management-permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users-management-permissions',
  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}}/:realm/users-management-permissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users-management-permissions');

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}}/:realm/users-management-permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users-management-permissions';
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}}/:realm/users-management-permissions"]
                                                       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}}/:realm/users-management-permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users-management-permissions",
  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}}/:realm/users-management-permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users-management-permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users-management-permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users-management-permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users-management-permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users-management-permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users-management-permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users-management-permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users-management-permissions")

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/:realm/users-management-permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users-management-permissions";

    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}}/:realm/users-management-permissions
http GET {{baseUrl}}/:realm/users-management-permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users-management-permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users-management-permissions")! 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 post --realm-testSMTPConnection
{{baseUrl}}/:realm/testSMTPConnection
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/testSMTPConnection");

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, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/testSMTPConnection" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/:realm/testSMTPConnection"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{}"

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}}/:realm/testSMTPConnection"),
    Content = new StringContent("{}")
    {
        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}}/:realm/testSMTPConnection");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/testSMTPConnection"

	payload := strings.NewReader("{}")

	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/:realm/testSMTPConnection HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/testSMTPConnection")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/testSMTPConnection"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{}"))
    .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, "{}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/testSMTPConnection")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/testSMTPConnection")
  .header("content-type", "application/json")
  .body("{}")
  .asString();
const data = JSON.stringify({});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/testSMTPConnection');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/testSMTPConnection',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/testSMTPConnection';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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}}/:realm/testSMTPConnection',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/testSMTPConnection")
  .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/:realm/testSMTPConnection',
  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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/testSMTPConnection',
  headers: {'content-type': 'application/json'},
  body: {},
  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}}/:realm/testSMTPConnection');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({});

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}}/:realm/testSMTPConnection',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/testSMTPConnection';
const options = {method: 'POST', headers: {'content-type': 'application/json'}, body: '{}'};

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 = @{  };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/testSMTPConnection"]
                                                       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}}/:realm/testSMTPConnection" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/testSMTPConnection",
  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([
    
  ]),
  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}}/:realm/testSMTPConnection', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/testSMTPConnection');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  
]));
$request->setRequestUrl('{{baseUrl}}/:realm/testSMTPConnection');
$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}}/:realm/testSMTPConnection' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/testSMTPConnection' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/testSMTPConnection", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/testSMTPConnection"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/testSMTPConnection"

payload <- "{}"

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}}/:realm/testSMTPConnection")

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 = "{}"

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/:realm/testSMTPConnection') do |req|
  req.body = "{}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/testSMTPConnection";

    let payload = json!({});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/:realm/testSMTPConnection \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/:realm/testSMTPConnection \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/:realm/testSMTPConnection
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/testSMTPConnection")! 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()
PUT put --realm-default-default-client-scopes--clientScopeId
{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/default-default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-default-client-scopes/:clientScopeId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/default-default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/default-default-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId
http PUT {{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-default-client-scopes/:clientScopeId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT put --realm-default-groups--groupId
{{baseUrl}}/:realm/default-groups/:groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/default-groups/:groupId")
require "http/client"

url = "{{baseUrl}}/:realm/default-groups/:groupId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/default-groups/:groupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-groups/:groupId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-groups/:groupId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/default-groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/default-groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-groups/:groupId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/default-groups/:groupId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/default-groups/:groupId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/default-groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-groups/:groupId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/default-groups/:groupId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-groups/:groupId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-groups/:groupId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-groups/:groupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/default-groups/:groupId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-groups/:groupId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/default-groups/:groupId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/default-groups/:groupId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-groups/:groupId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/default-groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-groups/:groupId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-groups/:groupId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-groups/:groupId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-groups/:groupId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/default-groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-groups/:groupId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-groups/:groupId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-groups/:groupId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/default-groups/:groupId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-groups/:groupId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/default-groups/:groupId
http PUT {{baseUrl}}/:realm/default-groups/:groupId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/default-groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-groups/:groupId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT put --realm-default-optional-client-scopes--clientScopeId
{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/default-optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/default-optional-client-scopes/:clientScopeId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/default-optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/default-optional-client-scopes/:clientScopeId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId
http PUT {{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/default-optional-client-scopes/:clientScopeId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT put --realm-users-management-permissions
{{baseUrl}}/:realm/users-management-permissions
BODY json

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users-management-permissions");

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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users-management-permissions" {:content-type :json
                                                                               :form-params {:enabled false
                                                                                             :resource ""
                                                                                             :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/:realm/users-management-permissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users-management-permissions"),
    Content = new StringContent("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/users-management-permissions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users-management-permissions"

	payload := strings.NewReader("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users-management-permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users-management-permissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users-management-permissions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users-management-permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users-management-permissions")
  .header("content-type", "application/json")
  .body("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .asString();
const data = JSON.stringify({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users-management-permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users-management-permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users-management-permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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}}/:realm/users-management-permissions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users-management-permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users-management-permissions',
  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({enabled: false, resource: '', scopePermissions: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users-management-permissions',
  headers: {'content-type': 'application/json'},
  body: {enabled: false, resource: '', scopePermissions: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users-management-permissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users-management-permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users-management-permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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 = @{ @"enabled": @NO,
                              @"resource": @"",
                              @"scopePermissions": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users-management-permissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users-management-permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users-management-permissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'enabled' => null,
    'resource' => '',
    'scopePermissions' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users-management-permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users-management-permissions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users-management-permissions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users-management-permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users-management-permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/users-management-permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users-management-permissions"

payload = {
    "enabled": False,
    "resource": "",
    "scopePermissions": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users-management-permissions"

payload <- "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users-management-permissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/users-management-permissions') do |req|
  req.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/users-management-permissions";

    let payload = json!({
        "enabled": false,
        "resource": "",
        "scopePermissions": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users-management-permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/:realm/users-management-permissions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}' \
  --output-document \
  - {{baseUrl}}/:realm/users-management-permissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enabled": false,
  "resource": "",
  "scopePermissions": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users-management-permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add realm-level role mappings to the user (POST)
{{baseUrl}}/:realm/users/:id/role-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users/:id/role-mappings/realm" {:content-type :json
                                                                                 :form-params [{:attributes {}
                                                                                                :clientRole false
                                                                                                :composite false
                                                                                                :composites {:client {}
                                                                                                             :realm []}
                                                                                                :containerId ""
                                                                                                :description ""
                                                                                                :id ""
                                                                                                :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/users/:id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/users/:id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/users/:id/role-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .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/:realm/users/:id/role-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/users/:id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/role-mappings/realm"]
                                                       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}}/:realm/users/:id/role-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/realm",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/users/:id/role-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm');
$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}}/:realm/users/:id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/users/:id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/realm")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/users/:id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/users/:id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/users/:id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add realm-level role mappings to the user
{{baseUrl}}/:realm/groups/:id/role-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/groups/:id/role-mappings/realm" {:content-type :json
                                                                                  :form-params [{:attributes {}
                                                                                                 :clientRole false
                                                                                                 :composite false
                                                                                                 :composites {:client {}
                                                                                                              :realm []}
                                                                                                 :containerId ""
                                                                                                 :description ""
                                                                                                 :id ""
                                                                                                 :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/groups/:id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/groups/:id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/groups/:id/role-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .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/:realm/groups/:id/role-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/groups/:id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id/role-mappings/realm"]
                                                       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}}/:realm/groups/:id/role-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/realm",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/groups/:id/role-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
$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}}/:realm/groups/:id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/groups/:id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/groups/:id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/groups/:id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/groups/:id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete realm-level role mappings (DELETE)
{{baseUrl}}/:realm/users/:id/role-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/users/:id/role-mappings/realm" {:content-type :json
                                                                                   :form-params [{:attributes {}
                                                                                                  :clientRole false
                                                                                                  :composite false
                                                                                                  :composites {:client {}
                                                                                                               :realm []}
                                                                                                  :containerId ""
                                                                                                  :description ""
                                                                                                  :id ""
                                                                                                  :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/users/:id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/users/:id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/users/:id/role-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/users/:id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/users/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/role-mappings/realm"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/users/:id/role-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/realm",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/users/:id/role-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm');
$request->setRequestMethod('DELETE');
$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}}/:realm/users/:id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/users/:id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/realm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/users/:id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/users/:id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/users/:id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Delete realm-level role mappings
{{baseUrl}}/:realm/groups/:id/role-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/groups/:id/role-mappings/realm" {:content-type :json
                                                                                    :form-params [{:attributes {}
                                                                                                   :clientRole false
                                                                                                   :composite false
                                                                                                   :composites {:client {}
                                                                                                                :realm []}
                                                                                                   :containerId ""
                                                                                                   :description ""
                                                                                                   :id ""
                                                                                                   :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/groups/:id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/groups/:id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/groups/:id/role-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/groups/:id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/groups/:id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/groups/:id/role-mappings/realm"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/groups/:id/role-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/realm",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/groups/:id/role-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
$request->setRequestMethod('DELETE');
$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}}/:realm/groups/:id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/groups/:id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/groups/:id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/groups/:id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/groups/:id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Get effective realm-level role mappings This will recurse all composite roles to get the result. (GET)
{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite"

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}}/:realm/users/:id/role-mappings/realm/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite"

	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/:realm/users/:id/role-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite"))
    .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}}/:realm/users/:id/role-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite")
  .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}}/:realm/users/:id/role-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite';
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}}/:realm/users/:id/role-mappings/realm/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/realm/composite',
  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}}/:realm/users/:id/role-mappings/realm/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite');

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}}/:realm/users/:id/role-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite';
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}}/:realm/users/:id/role-mappings/realm/composite"]
                                                       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}}/:realm/users/:id/role-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite",
  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}}/:realm/users/:id/role-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/role-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite")

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/:realm/users/:id/role-mappings/realm/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite";

    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}}/:realm/users/:id/role-mappings/realm/composite
http GET {{baseUrl}}/:realm/users/:id/role-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/realm/composite")! 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 Get effective realm-level role mappings This will recurse all composite roles to get the result.
{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite"

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}}/:realm/groups/:id/role-mappings/realm/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite"

	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/:realm/groups/:id/role-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite"))
    .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}}/:realm/groups/:id/role-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite")
  .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}}/:realm/groups/:id/role-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite';
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}}/:realm/groups/:id/role-mappings/realm/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/realm/composite',
  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}}/:realm/groups/:id/role-mappings/realm/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite');

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}}/:realm/groups/:id/role-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite';
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}}/:realm/groups/:id/role-mappings/realm/composite"]
                                                       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}}/:realm/groups/:id/role-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite",
  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}}/:realm/groups/:id/role-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/role-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite")

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/:realm/groups/:id/role-mappings/realm/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite";

    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}}/:realm/groups/:id/role-mappings/realm/composite
http GET {{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/composite")! 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 Get realm-level role mappings (GET)
{{baseUrl}}/:realm/users/:id/role-mappings/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/role-mappings/realm")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

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}}/:realm/users/:id/role-mappings/realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

	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/:realm/users/:id/role-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/realm"))
    .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}}/:realm/users/:id/role-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .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}}/:realm/users/:id/role-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm';
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}}/:realm/users/:id/role-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/realm',
  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}}/:realm/users/:id/role-mappings/realm'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/role-mappings/realm');

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}}/:realm/users/:id/role-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm';
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}}/:realm/users/:id/role-mappings/realm"]
                                                       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}}/:realm/users/:id/role-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/realm",
  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}}/:realm/users/:id/role-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/role-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/realm")

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/:realm/users/:id/role-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm";

    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}}/:realm/users/:id/role-mappings/realm
http GET {{baseUrl}}/:realm/users/:id/role-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/realm")! 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 Get realm-level role mappings
{{baseUrl}}/:realm/groups/:id/role-mappings/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

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}}/:realm/groups/:id/role-mappings/realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

	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/:realm/groups/:id/role-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/realm"))
    .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}}/:realm/groups/:id/role-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .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}}/:realm/groups/:id/role-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm';
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}}/:realm/groups/:id/role-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/realm',
  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}}/:realm/groups/:id/role-mappings/realm'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/role-mappings/realm');

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}}/:realm/groups/:id/role-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm';
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}}/:realm/groups/:id/role-mappings/realm"]
                                                       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}}/:realm/groups/:id/role-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/realm",
  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}}/:realm/groups/:id/role-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/role-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/realm")

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/:realm/groups/:id/role-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm";

    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}}/:realm/groups/:id/role-mappings/realm
http GET {{baseUrl}}/:realm/groups/:id/role-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/realm")! 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 Get realm-level roles that can be mapped (GET)
{{baseUrl}}/:realm/users/:id/role-mappings/realm/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available"

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}}/:realm/users/:id/role-mappings/realm/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings/realm/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available"

	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/:realm/users/:id/role-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings/realm/available"))
    .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}}/:realm/users/:id/role-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/role-mappings/realm/available")
  .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}}/:realm/users/:id/role-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm/available';
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}}/:realm/users/:id/role-mappings/realm/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings/realm/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings/realm/available',
  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}}/:realm/users/:id/role-mappings/realm/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/role-mappings/realm/available');

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}}/:realm/users/:id/role-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings/realm/available';
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}}/:realm/users/:id/role-mappings/realm/available"]
                                                       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}}/:realm/users/:id/role-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available",
  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}}/:realm/users/:id/role-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/role-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings/realm/available")

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/:realm/users/:id/role-mappings/realm/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available";

    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}}/:realm/users/:id/role-mappings/realm/available
http GET {{baseUrl}}/:realm/users/:id/role-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings/realm/available")! 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 Get realm-level roles that can be mapped
{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available"

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}}/:realm/groups/:id/role-mappings/realm/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available"

	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/:realm/groups/:id/role-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available"))
    .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}}/:realm/groups/:id/role-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available")
  .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}}/:realm/groups/:id/role-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available';
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}}/:realm/groups/:id/role-mappings/realm/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings/realm/available',
  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}}/:realm/groups/:id/role-mappings/realm/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available');

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}}/:realm/groups/:id/role-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available';
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}}/:realm/groups/:id/role-mappings/realm/available"]
                                                       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}}/:realm/groups/:id/role-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available",
  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}}/:realm/groups/:id/role-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/role-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available")

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/:realm/groups/:id/role-mappings/realm/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available";

    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}}/:realm/groups/:id/role-mappings/realm/available
http GET {{baseUrl}}/:realm/groups/:id/role-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings/realm/available")! 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 Get role mappings (GET)
{{baseUrl}}/:realm/users/:id/role-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/role-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/role-mappings")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/role-mappings"

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}}/:realm/users/:id/role-mappings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/role-mappings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/role-mappings"

	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/:realm/users/:id/role-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/role-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/role-mappings"))
    .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}}/:realm/users/:id/role-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/role-mappings")
  .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}}/:realm/users/:id/role-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/role-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/role-mappings';
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}}/:realm/users/:id/role-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/role-mappings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/role-mappings',
  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}}/:realm/users/:id/role-mappings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/role-mappings');

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}}/:realm/users/:id/role-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/role-mappings';
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}}/:realm/users/:id/role-mappings"]
                                                       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}}/:realm/users/:id/role-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/role-mappings",
  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}}/:realm/users/:id/role-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/role-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/role-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/role-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/role-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/role-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/role-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/role-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/role-mappings")

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/:realm/users/:id/role-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/role-mappings";

    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}}/:realm/users/:id/role-mappings
http GET {{baseUrl}}/:realm/users/:id/role-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/role-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/role-mappings")! 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 Get role mappings
{{baseUrl}}/:realm/groups/:id/role-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/groups/:id/role-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/groups/:id/role-mappings")
require "http/client"

url = "{{baseUrl}}/:realm/groups/:id/role-mappings"

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}}/:realm/groups/:id/role-mappings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/groups/:id/role-mappings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/groups/:id/role-mappings"

	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/:realm/groups/:id/role-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/groups/:id/role-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/groups/:id/role-mappings"))
    .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}}/:realm/groups/:id/role-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/groups/:id/role-mappings")
  .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}}/:realm/groups/:id/role-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/groups/:id/role-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/groups/:id/role-mappings';
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}}/:realm/groups/:id/role-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/groups/:id/role-mappings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/groups/:id/role-mappings',
  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}}/:realm/groups/:id/role-mappings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/groups/:id/role-mappings');

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}}/:realm/groups/:id/role-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/groups/:id/role-mappings';
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}}/:realm/groups/:id/role-mappings"]
                                                       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}}/:realm/groups/:id/role-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/groups/:id/role-mappings",
  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}}/:realm/groups/:id/role-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/groups/:id/role-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/groups/:id/role-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/groups/:id/role-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/groups/:id/role-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/groups/:id/role-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/groups/:id/role-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/groups/:id/role-mappings")

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/:realm/groups/:id/role-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/groups/:id/role-mappings";

    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}}/:realm/groups/:id/role-mappings
http GET {{baseUrl}}/:realm/groups/:id/role-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/groups/:id/role-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/groups/:id/role-mappings")! 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 Add a composite to the role (POST)
{{baseUrl}}/:realm/roles/:role-name/composites
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/composites");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/roles/:role-name/composites" {:content-type :json
                                                                               :form-params [{:attributes {}
                                                                                              :clientRole false
                                                                                              :composite false
                                                                                              :composites {:client {}
                                                                                                           :realm []}
                                                                                              :containerId ""
                                                                                              :description ""
                                                                                              :id ""
                                                                                              :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/composites");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/composites")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/roles/:role-name/composites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/composites")
  .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/:realm/roles/:role-name/composites',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles/:role-name/composites"]
                                                       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}}/:realm/roles/:role-name/composites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/composites",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/roles/:role-name/composites', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/composites');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/composites');
$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}}/:realm/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/composites"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/composites"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/composites")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/composites";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/composites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add a composite to the role
{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites" {:content-type :json
                                                                                           :form-params [{:attributes {}
                                                                                                          :clientRole false
                                                                                                          :composite false
                                                                                                          :composites {:client {}
                                                                                                                       :realm []}
                                                                                                          :containerId ""
                                                                                                          :description ""
                                                                                                          :id ""
                                                                                                          :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/clients/:id/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/clients/:id/roles/:role-name/composites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .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/:realm/clients/:id/roles/:role-name/composites',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/clients/:id/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"]
                                                       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}}/:realm/clients/:id/roles/:role-name/composites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/clients/:id/roles/:role-name/composites', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
$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}}/:realm/clients/:id/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/clients/:id/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/clients/:id/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")! 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 An app-level roles for the specified app for the role’s composite (GET)
{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client"

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}}/:realm/roles/:role-name/composites/clients/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client"

	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/:realm/roles/:role-name/composites/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client"))
    .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}}/:realm/roles/:role-name/composites/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client")
  .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}}/:realm/roles/:role-name/composites/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client';
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}}/:realm/roles/:role-name/composites/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/composites/clients/:client',
  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}}/:realm/roles/:role-name/composites/clients/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client');

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}}/:realm/roles/:role-name/composites/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client';
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}}/:realm/roles/:role-name/composites/clients/:client"]
                                                       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}}/:realm/roles/:role-name/composites/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client",
  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}}/:realm/roles/:role-name/composites/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles/:role-name/composites/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client")

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/:realm/roles/:role-name/composites/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client";

    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}}/:realm/roles/:role-name/composites/clients/:client
http GET {{baseUrl}}/:realm/roles/:role-name/composites/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/composites/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/composites/clients/:client")! 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 An app-level roles for the specified app for the role’s composite
{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client"

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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client"

	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/:realm/clients/:id/roles/:role-name/composites/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client"))
    .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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client")
  .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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client';
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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/composites/clients/:client',
  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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client');

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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client';
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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client"]
                                                       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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client",
  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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles/:role-name/composites/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client")

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/:realm/clients/:id/roles/:role-name/composites/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client";

    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}}/:realm/clients/:id/roles/:role-name/composites/clients/:client
http GET {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/clients/:client")! 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 Create a new role for the realm or client (POST)
{{baseUrl}}/:realm/roles
BODY json

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles");

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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/roles" {:content-type :json
                                                         :form-params {:attributes {}
                                                                       :clientRole false
                                                                       :composite false
                                                                       :composites {:client {}
                                                                                    :realm []}
                                                                       :containerId ""
                                                                       :description ""
                                                                       :id ""
                                                                       :name ""}})
require "http/client"

url = "{{baseUrl}}/:realm/roles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/roles"),
    Content = new StringContent("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/roles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles"

	payload := strings.NewReader("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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/:realm/roles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/roles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/roles")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/roles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/roles',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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}}/:realm/roles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles")
  .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/:realm/roles',
  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({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {client: {}, realm: []},
  containerId: '',
  description: '',
  id: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/roles',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  },
  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}}/:realm/roles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  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: 'POST',
  url: '{{baseUrl}}/:realm/roles',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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 = @{ @"attributes": @{  },
                              @"clientRole": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"client": @{  }, @"realm": @[  ] },
                              @"containerId": @"",
                              @"description": @"",
                              @"id": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles"]
                                                       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}}/:realm/roles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles",
  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([
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]),
  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}}/:realm/roles', [
  'body' => '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles');
$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}}/:realm/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/roles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles"

payload = {
    "attributes": {},
    "clientRole": False,
    "composite": False,
    "composites": {
        "client": {},
        "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles"

payload <- "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/roles")

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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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/:realm/roles') do |req|
  req.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles";

    let payload = json!({
        "attributes": json!({}),
        "clientRole": false,
        "composite": false,
        "composites": json!({
            "client": json!({}),
            "realm": ()
        }),
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    });

    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}}/:realm/roles \
  --header 'content-type: application/json' \
  --data '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
echo '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/:realm/roles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/roles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [],
  "clientRole": false,
  "composite": false,
  "composites": [
    "client": [],
    "realm": []
  ],
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create a new role for the realm or client
{{baseUrl}}/:realm/clients/:id/roles
BODY json

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles");

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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/roles" {:content-type :json
                                                                     :form-params {:attributes {}
                                                                                   :clientRole false
                                                                                   :composite false
                                                                                   :composites {:client {}
                                                                                                :realm []}
                                                                                   :containerId ""
                                                                                   :description ""
                                                                                   :id ""
                                                                                   :name ""}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/clients/:id/roles"),
    Content = new StringContent("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/clients/:id/roles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles"

	payload := strings.NewReader("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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/:realm/clients/:id/roles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/roles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/roles")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/roles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/roles',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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}}/:realm/clients/:id/roles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles")
  .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/:realm/clients/:id/roles',
  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({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {client: {}, realm: []},
  containerId: '',
  description: '',
  id: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/roles',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  },
  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}}/:realm/clients/:id/roles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  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: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/roles',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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 = @{ @"attributes": @{  },
                              @"clientRole": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"client": @{  }, @"realm": @[  ] },
                              @"containerId": @"",
                              @"description": @"",
                              @"id": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/roles"]
                                                       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}}/:realm/clients/:id/roles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles",
  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([
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]),
  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}}/:realm/clients/:id/roles', [
  'body' => '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles');
$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}}/:realm/clients/:id/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/roles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles"

payload = {
    "attributes": {},
    "clientRole": False,
    "composite": False,
    "composites": {
        "client": {},
        "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles"

payload <- "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/clients/:id/roles")

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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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/:realm/clients/:id/roles') do |req|
  req.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles";

    let payload = json!({
        "attributes": json!({}),
        "clientRole": false,
        "composite": false,
        "composites": json!({
            "client": json!({}),
            "realm": ()
        }),
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    });

    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}}/:realm/clients/:id/roles \
  --header 'content-type: application/json' \
  --data '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
echo '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/:realm/clients/:id/roles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [],
  "clientRole": false,
  "composite": false,
  "composites": [
    "client": [],
    "realm": []
  ],
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete a role by name (DELETE)
{{baseUrl}}/:realm/roles/:role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-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/:realm/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/roles/:role-name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-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/:realm/roles/:role-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}}/:realm/roles/:role-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}}/:realm/roles/:role-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}}/:realm/roles/:role-name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-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}}/:realm/roles/:role-name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-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/:realm/roles/:role-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}}/:realm/roles/:role-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}}/:realm/roles/:role-name
http DELETE {{baseUrl}}/:realm/roles/:role-name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-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()
DELETE Delete a role by name
{{baseUrl}}/:realm/clients/:id/roles/:role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-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/:realm/clients/:id/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-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/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/clients/:id/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-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/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name
http DELETE {{baseUrl}}/:realm/clients/:id/roles/:role-name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-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()
GET Get a role by name (GET)
{{baseUrl}}/:realm/roles/:role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-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/:realm/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/roles/:role-name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-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}}/:realm/roles/:role-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}}/:realm/roles/:role-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}}/:realm/roles/:role-name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-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}}/:realm/roles/:role-name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-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/:realm/roles/:role-name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-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}}/:realm/roles/:role-name
http GET {{baseUrl}}/:realm/roles/:role-name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-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 Get a role by name
{{baseUrl}}/:realm/clients/:id/roles/:role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-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/:realm/clients/:id/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-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/:realm/clients/:id/roles/:role-name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-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}}/:realm/clients/:id/roles/:role-name
http GET {{baseUrl}}/:realm/clients/:id/roles/:role-name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-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 Get all roles for the realm or client (GET)
{{baseUrl}}/:realm/roles
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles")
require "http/client"

url = "{{baseUrl}}/:realm/roles"

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}}/:realm/roles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles"

	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/:realm/roles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles"))
    .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}}/:realm/roles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles")
  .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}}/:realm/roles');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/roles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles';
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}}/:realm/roles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles',
  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}}/:realm/roles'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles');

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}}/:realm/roles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles';
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}}/:realm/roles"]
                                                       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}}/:realm/roles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles",
  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}}/:realm/roles');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles")

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/:realm/roles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles";

    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}}/:realm/roles
http GET {{baseUrl}}/:realm/roles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles")! 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 Get all roles for the realm or client
{{baseUrl}}/:realm/clients/:id/roles
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles"

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}}/:realm/clients/:id/roles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles"

	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/:realm/clients/:id/roles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles"))
    .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}}/:realm/clients/:id/roles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles")
  .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}}/:realm/clients/:id/roles');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/clients/:id/roles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles';
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}}/:realm/clients/:id/roles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles',
  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}}/:realm/clients/:id/roles'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/roles');

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}}/:realm/clients/:id/roles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles';
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}}/:realm/clients/:id/roles"]
                                                       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}}/:realm/clients/:id/roles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles",
  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}}/:realm/clients/:id/roles');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles")

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/:realm/clients/:id/roles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles";

    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}}/:realm/clients/:id/roles
http GET {{baseUrl}}/:realm/clients/:id/roles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles")! 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 Get composites of the role (GET)
{{baseUrl}}/:realm/roles/:role-name/composites
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/composites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles/:role-name/composites")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/composites"

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}}/:realm/roles/:role-name/composites"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/composites");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/composites"

	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/:realm/roles/:role-name/composites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles/:role-name/composites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/composites"))
    .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}}/:realm/roles/:role-name/composites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles/:role-name/composites")
  .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}}/:realm/roles/:role-name/composites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/composites';
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}}/:realm/roles/:role-name/composites',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/composites")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/composites',
  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}}/:realm/roles/:role-name/composites'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles/:role-name/composites');

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}}/:realm/roles/:role-name/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/composites';
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}}/:realm/roles/:role-name/composites"]
                                                       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}}/:realm/roles/:role-name/composites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/composites",
  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}}/:realm/roles/:role-name/composites');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/composites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/composites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name/composites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/composites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles/:role-name/composites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/composites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/composites"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/composites")

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/:realm/roles/:role-name/composites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/composites";

    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}}/:realm/roles/:role-name/composites
http GET {{baseUrl}}/:realm/roles/:role-name/composites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/composites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/composites")! 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 Get composites of the role
{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

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}}/:realm/clients/:id/roles/:role-name/composites"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

	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/:realm/clients/:id/roles/:role-name/composites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"))
    .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}}/:realm/clients/:id/roles/:role-name/composites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .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}}/:realm/clients/:id/roles/:role-name/composites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites';
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}}/:realm/clients/:id/roles/:role-name/composites',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/composites',
  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}}/:realm/clients/:id/roles/:role-name/composites'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');

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}}/:realm/clients/:id/roles/:role-name/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites';
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}}/:realm/clients/:id/roles/:role-name/composites"]
                                                       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}}/:realm/clients/:id/roles/:role-name/composites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites",
  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}}/:realm/clients/:id/roles/:role-name/composites');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles/:role-name/composites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")

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/:realm/clients/:id/roles/:role-name/composites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites";

    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}}/:realm/clients/:id/roles/:role-name/composites
http GET {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")! 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 Get realm-level roles of the role’s composite (GET)
{{baseUrl}}/:realm/roles/:role-name/composites/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/composites/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles/:role-name/composites/realm")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/composites/realm"

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}}/:realm/roles/:role-name/composites/realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/composites/realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/composites/realm"

	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/:realm/roles/:role-name/composites/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles/:role-name/composites/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/composites/realm"))
    .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}}/:realm/roles/:role-name/composites/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles/:role-name/composites/realm")
  .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}}/:realm/roles/:role-name/composites/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/composites/realm';
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}}/:realm/roles/:role-name/composites/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/composites/realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/composites/realm',
  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}}/:realm/roles/:role-name/composites/realm'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles/:role-name/composites/realm');

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}}/:realm/roles/:role-name/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/composites/realm';
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}}/:realm/roles/:role-name/composites/realm"]
                                                       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}}/:realm/roles/:role-name/composites/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/composites/realm",
  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}}/:realm/roles/:role-name/composites/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/composites/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/composites/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name/composites/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/composites/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles/:role-name/composites/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/composites/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/composites/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/composites/realm")

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/:realm/roles/:role-name/composites/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/composites/realm";

    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}}/:realm/roles/:role-name/composites/realm
http GET {{baseUrl}}/:realm/roles/:role-name/composites/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/composites/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/composites/realm")! 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 Get realm-level roles of the role’s composite
{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm"

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}}/:realm/clients/:id/roles/:role-name/composites/realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm"

	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/:realm/clients/:id/roles/:role-name/composites/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm"))
    .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}}/:realm/clients/:id/roles/:role-name/composites/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm")
  .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}}/:realm/clients/:id/roles/:role-name/composites/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm';
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}}/:realm/clients/:id/roles/:role-name/composites/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/composites/realm',
  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}}/:realm/clients/:id/roles/:role-name/composites/realm'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm');

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}}/:realm/clients/:id/roles/:role-name/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm';
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}}/:realm/clients/:id/roles/:role-name/composites/realm"]
                                                       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}}/:realm/clients/:id/roles/:role-name/composites/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm",
  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}}/:realm/clients/:id/roles/:role-name/composites/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles/:role-name/composites/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm")

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/:realm/clients/:id/roles/:role-name/composites/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm";

    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}}/:realm/clients/:id/roles/:role-name/composites/realm
http GET {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites/realm")! 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 Remove roles from the role’s composite (DELETE)
{{baseUrl}}/:realm/roles/:role-name/composites
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/composites");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/roles/:role-name/composites" {:content-type :json
                                                                                 :form-params [{:attributes {}
                                                                                                :clientRole false
                                                                                                :composite false
                                                                                                :composites {:client {}
                                                                                                             :realm []}
                                                                                                :containerId ""
                                                                                                :description ""
                                                                                                :id ""
                                                                                                :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/composites");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/roles/:role-name/composites',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/composites',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles/:role-name/composites"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/roles/:role-name/composites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/composites",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/roles/:role-name/composites', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/composites');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/composites');
$request->setRequestMethod('DELETE');
$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}}/:realm/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/composites"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/composites"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/composites")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/composites";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/composites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Remove roles from the role’s composite
{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites" {:content-type :json
                                                                                             :form-params [{:attributes {}
                                                                                                            :clientRole false
                                                                                                            :composite false
                                                                                                            :composites {:client {}
                                                                                                                         :realm []}
                                                                                                            :containerId ""
                                                                                                            :description ""
                                                                                                            :id ""
                                                                                                            :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/clients/:id/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/clients/:id/roles/:role-name/composites',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/composites',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/clients/:id/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/clients/:id/roles/:role-name/composites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites');
$request->setRequestMethod('DELETE');
$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}}/:realm/clients/:id/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/clients/:id/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/clients/:id/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/composites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Return List of Groups that have the specified role name (GET)
{{baseUrl}}/:realm/roles/:role-name/groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles/:role-name/groups")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/groups"

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}}/:realm/roles/:role-name/groups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/groups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/groups"

	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/:realm/roles/:role-name/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles/:role-name/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/groups"))
    .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}}/:realm/roles/:role-name/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles/:role-name/groups")
  .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}}/:realm/roles/:role-name/groups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles/:role-name/groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/groups';
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}}/:realm/roles/:role-name/groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/groups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/groups',
  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}}/:realm/roles/:role-name/groups'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles/:role-name/groups');

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}}/:realm/roles/:role-name/groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/groups';
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}}/:realm/roles/:role-name/groups"]
                                                       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}}/:realm/roles/:role-name/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/groups",
  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}}/:realm/roles/:role-name/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles/:role-name/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/groups")

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/:realm/roles/:role-name/groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/groups";

    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}}/:realm/roles/:role-name/groups
http GET {{baseUrl}}/:realm/roles/:role-name/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/groups")! 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 Return List of Groups that have the specified role name
{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups"

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}}/:realm/clients/:id/roles/:role-name/groups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups"

	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/:realm/clients/:id/roles/:role-name/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups"))
    .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}}/:realm/clients/:id/roles/:role-name/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups")
  .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}}/:realm/clients/:id/roles/:role-name/groups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups';
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}}/:realm/clients/:id/roles/:role-name/groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/groups',
  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}}/:realm/clients/:id/roles/:role-name/groups'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups');

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}}/:realm/clients/:id/roles/:role-name/groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups';
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}}/:realm/clients/:id/roles/:role-name/groups"]
                                                       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}}/:realm/clients/:id/roles/:role-name/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups",
  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}}/:realm/clients/:id/roles/:role-name/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles/:role-name/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups")

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/:realm/clients/:id/roles/:role-name/groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups";

    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}}/:realm/clients/:id/roles/:role-name/groups
http GET {{baseUrl}}/:realm/clients/:id/roles/:role-name/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/groups")! 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 Return List of Users that have the specified role name (GET)
{{baseUrl}}/:realm/roles/:role-name/users
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles/:role-name/users")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/users"

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}}/:realm/roles/:role-name/users"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/users");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/users"

	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/:realm/roles/:role-name/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles/:role-name/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/users"))
    .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}}/:realm/roles/:role-name/users")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles/:role-name/users")
  .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}}/:realm/roles/:role-name/users');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles/:role-name/users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/users';
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}}/:realm/roles/:role-name/users',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/users")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/users',
  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}}/:realm/roles/:role-name/users'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles/:role-name/users');

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}}/:realm/roles/:role-name/users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/users';
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}}/:realm/roles/:role-name/users"]
                                                       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}}/:realm/roles/:role-name/users" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/users",
  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}}/:realm/roles/:role-name/users');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/users');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/users');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name/users' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/users' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles/:role-name/users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/users"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/users"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/users")

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/:realm/roles/:role-name/users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/users";

    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}}/:realm/roles/:role-name/users
http GET {{baseUrl}}/:realm/roles/:role-name/users
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/users")! 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 Return List of Users that have the specified role name
{{baseUrl}}/:realm/clients/:id/roles/:role-name/users
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users"

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}}/:realm/clients/:id/roles/:role-name/users"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/users");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users"

	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/:realm/clients/:id/roles/:role-name/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/users"))
    .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}}/:realm/clients/:id/roles/:role-name/users")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles/:role-name/users")
  .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}}/:realm/clients/:id/roles/:role-name/users');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/users';
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}}/:realm/clients/:id/roles/:role-name/users',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/users")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/users',
  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}}/:realm/clients/:id/roles/:role-name/users'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/users');

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}}/:realm/clients/:id/roles/:role-name/users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/users';
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}}/:realm/clients/:id/roles/:role-name/users"]
                                                       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}}/:realm/clients/:id/roles/:role-name/users" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users",
  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}}/:realm/clients/:id/roles/:role-name/users');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/users');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/users');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/users' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/users' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles/:role-name/users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/users")

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/:realm/clients/:id/roles/:role-name/users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users";

    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}}/:realm/clients/:id/roles/:role-name/users
http GET {{baseUrl}}/:realm/clients/:id/roles/:role-name/users
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/users")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Return object stating whether role Authoirzation permissions have been initialized or not and a reference (1)
{{baseUrl}}/:realm/roles/:role-name/management/permissions
BODY json

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/management/permissions");

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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/roles/:role-name/management/permissions" {:content-type :json
                                                                                          :form-params {:enabled false
                                                                                                        :resource ""
                                                                                                        :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/management/permissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles/:role-name/management/permissions"),
    Content = new StringContent("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/roles/:role-name/management/permissions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/management/permissions"

	payload := strings.NewReader("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/roles/:role-name/management/permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/roles/:role-name/management/permissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/management/permissions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/roles/:role-name/management/permissions")
  .header("content-type", "application/json")
  .body("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .asString();
const data = JSON.stringify({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/roles/:role-name/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles/:role-name/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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}}/:realm/roles/:role-name/management/permissions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/management/permissions',
  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({enabled: false, resource: '', scopePermissions: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles/:role-name/management/permissions',
  headers: {'content-type': 'application/json'},
  body: {enabled: false, resource: '', scopePermissions: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/roles/:role-name/management/permissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles/:role-name/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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 = @{ @"enabled": @NO,
                              @"resource": @"",
                              @"scopePermissions": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles/:role-name/management/permissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/roles/:role-name/management/permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/management/permissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'enabled' => null,
    'resource' => '',
    'scopePermissions' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/roles/:role-name/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/management/permissions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/management/permissions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/roles/:role-name/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/management/permissions"

payload = {
    "enabled": False,
    "resource": "",
    "scopePermissions": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/management/permissions"

payload <- "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/management/permissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/roles/:role-name/management/permissions') do |req|
  req.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/roles/:role-name/management/permissions";

    let payload = json!({
        "enabled": false,
        "resource": "",
        "scopePermissions": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/roles/:role-name/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/:realm/roles/:role-name/management/permissions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}' \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/management/permissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enabled": false,
  "resource": "",
  "scopePermissions": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return object stating whether role Authoirzation permissions have been initialized or not and a reference (GET)
{{baseUrl}}/:realm/roles/:role-name/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-name/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles/:role-name/management/permissions")
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name/management/permissions"

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}}/:realm/roles/:role-name/management/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles/:role-name/management/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name/management/permissions"

	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/:realm/roles/:role-name/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles/:role-name/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name/management/permissions"))
    .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}}/:realm/roles/:role-name/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles/:role-name/management/permissions")
  .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}}/:realm/roles/:role-name/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles/:role-name/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name/management/permissions';
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}}/:realm/roles/:role-name/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name/management/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-name/management/permissions',
  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}}/:realm/roles/:role-name/management/permissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles/:role-name/management/permissions');

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}}/:realm/roles/:role-name/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name/management/permissions';
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}}/:realm/roles/:role-name/management/permissions"]
                                                       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}}/:realm/roles/:role-name/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name/management/permissions",
  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}}/:realm/roles/:role-name/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles/:role-name/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles/:role-name/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name/management/permissions")

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/:realm/roles/:role-name/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles/:role-name/management/permissions";

    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}}/:realm/roles/:role-name/management/permissions
http GET {{baseUrl}}/:realm/roles/:role-name/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Return object stating whether role Authoirzation permissions have been initialized or not and a reference (PUT)
{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions
BODY json

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions");

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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions" {:content-type :json
                                                                                                      :form-params {:enabled false
                                                                                                                    :resource ""
                                                                                                                    :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"),
    Content = new StringContent("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/clients/:id/roles/:role-name/management/permissions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"

	payload := strings.NewReader("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/clients/:id/roles/:role-name/management/permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .header("content-type", "application/json")
  .body("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .asString();
const data = JSON.stringify({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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}}/:realm/clients/:id/roles/:role-name/management/permissions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/management/permissions',
  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({enabled: false, resource: '', scopePermissions: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions',
  headers: {'content-type': 'application/json'},
  body: {enabled: false, resource: '', scopePermissions: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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 = @{ @"enabled": @NO,
                              @"resource": @"",
                              @"scopePermissions": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'enabled' => null,
    'resource' => '',
    'scopePermissions' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/clients/:id/roles/:role-name/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"

payload = {
    "enabled": False,
    "resource": "",
    "scopePermissions": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"

payload <- "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/clients/:id/roles/:role-name/management/permissions') do |req|
  req.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/clients/:id/roles/:role-name/management/permissions";

    let payload = json!({
        "enabled": false,
        "resource": "",
        "scopePermissions": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enabled": false,
  "resource": "",
  "scopePermissions": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return object stating whether role Authoirzation permissions have been initialized or not and a reference
{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"

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}}/:realm/clients/:id/roles/:role-name/management/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"

	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/:realm/clients/:id/roles/:role-name/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"))
    .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}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .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}}/:realm/clients/:id/roles/:role-name/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions';
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}}/:realm/clients/:id/roles/:role-name/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-name/management/permissions',
  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}}/:realm/clients/:id/roles/:role-name/management/permissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions');

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}}/:realm/clients/:id/roles/:role-name/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions';
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}}/:realm/clients/:id/roles/:role-name/management/permissions"]
                                                       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}}/:realm/clients/:id/roles/:role-name/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions",
  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}}/:realm/clients/:id/roles/:role-name/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/roles/:role-name/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")

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/:realm/clients/:id/roles/:role-name/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions";

    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}}/:realm/clients/:id/roles/:role-name/management/permissions
http GET {{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update a role by name (PUT)
{{baseUrl}}/:realm/roles/:role-name
BODY json

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles/:role-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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/roles/:role-name" {:content-type :json
                                                                   :form-params {:attributes {}
                                                                                 :clientRole false
                                                                                 :composite false
                                                                                 :composites {:client {}
                                                                                              :realm []}
                                                                                 :containerId ""
                                                                                 :description ""
                                                                                 :id ""
                                                                                 :name ""}})
require "http/client"

url = "{{baseUrl}}/:realm/roles/:role-name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles/:role-name"),
    Content = new StringContent("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/roles/:role-name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles/:role-name"

	payload := strings.NewReader("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/roles/:role-name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/roles/:role-name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles/:role-name"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/roles/:role-name")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/roles/:role-name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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}}/:realm/roles/:role-name',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles/:role-name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles/:role-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({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {client: {}, realm: []},
  containerId: '',
  description: '',
  id: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles/:role-name',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/roles/:role-name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  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: 'PUT',
  url: '{{baseUrl}}/:realm/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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 = @{ @"attributes": @{  },
                              @"clientRole": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"client": @{  }, @"realm": @[  ] },
                              @"containerId": @"",
                              @"description": @"",
                              @"id": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles/:role-name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/roles/:role-name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles/:role-name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/roles/:role-name', [
  'body' => '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles/:role-name');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles/:role-name');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/roles/:role-name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles/:role-name"

payload = {
    "attributes": {},
    "clientRole": False,
    "composite": False,
    "composites": {
        "client": {},
        "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles/:role-name"

payload <- "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles/:role-name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/roles/:role-name') do |req|
  req.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/roles/:role-name";

    let payload = json!({
        "attributes": json!({}),
        "clientRole": false,
        "composite": false,
        "composites": json!({
            "client": json!({}),
            "realm": ()
        }),
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/roles/:role-name \
  --header 'content-type: application/json' \
  --data '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
echo '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/:realm/roles/:role-name \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/roles/:role-name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [],
  "clientRole": false,
  "composite": false,
  "composites": [
    "client": [],
    "realm": []
  ],
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles/:role-name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update a role by name
{{baseUrl}}/:realm/clients/:id/roles/:role-name
BODY json

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/roles/:role-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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/clients/:id/roles/:role-name" {:content-type :json
                                                                               :form-params {:attributes {}
                                                                                             :clientRole false
                                                                                             :composite false
                                                                                             :composites {:client {}
                                                                                                          :realm []}
                                                                                             :containerId ""
                                                                                             :description ""
                                                                                             :id ""
                                                                                             :name ""}})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/roles/:role-name"),
    Content = new StringContent("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/clients/:id/roles/:role-name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/roles/:role-name"

	payload := strings.NewReader("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/clients/:id/roles/:role-name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/clients/:id/roles/:role-name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/roles/:role-name"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/clients/:id/roles/:role-name")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/clients/:id/roles/:role-name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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}}/:realm/clients/:id/roles/:role-name',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/roles/:role-name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/roles/:role-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({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {client: {}, realm: []},
  containerId: '',
  description: '',
  id: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/clients/:id/roles/:role-name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  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: 'PUT',
  url: '{{baseUrl}}/:realm/clients/:id/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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 = @{ @"attributes": @{  },
                              @"clientRole": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"client": @{  }, @"realm": @[  ] },
                              @"containerId": @"",
                              @"description": @"",
                              @"id": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/roles/:role-name"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/clients/:id/roles/:role-name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/roles/:role-name",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/clients/:id/roles/:role-name', [
  'body' => '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/roles/:role-name');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/clients/:id/roles/:role-name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/roles/:role-name"

payload = {
    "attributes": {},
    "clientRole": False,
    "composite": False,
    "composites": {
        "client": {},
        "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/roles/:role-name"

payload <- "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/roles/:role-name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/clients/:id/roles/:role-name') do |req|
  req.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/clients/:id/roles/:role-name";

    let payload = json!({
        "attributes": json!({}),
        "clientRole": false,
        "composite": false,
        "composites": json!({
            "client": json!({}),
            "realm": ()
        }),
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/clients/:id/roles/:role-name \
  --header 'content-type: application/json' \
  --data '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
echo '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/:realm/clients/:id/roles/:role-name \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/roles/:role-name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [],
  "clientRole": false,
  "composite": false,
  "composites": [
    "client": [],
    "realm": []
  ],
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/roles/:role-name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the role
{{baseUrl}}/:realm/roles-by-id/:role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/roles-by-id/:role-id")
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles-by-id/:role-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/roles-by-id/:role-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/roles-by-id/:role-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/roles-by-id/:role-id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/roles-by-id/:role-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/roles-by-id/:role-id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles-by-id/:role-id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/roles-by-id/:role-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/roles-by-id/:role-id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/roles-by-id/:role-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/roles-by-id/:role-id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/roles-by-id/:role-id
http DELETE {{baseUrl}}/:realm/roles-by-id/:role-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get a specific role’s representation
{{baseUrl}}/:realm/roles-by-id/:role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles-by-id/:role-id")
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-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/:realm/roles-by-id/:role-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles-by-id/:role-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/roles-by-id/:role-id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles-by-id/:role-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-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/:realm/roles-by-id/:role-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-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}}/:realm/roles-by-id/:role-id
http GET {{baseUrl}}/:realm/roles-by-id/:role-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-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 Get client-level roles for the client that are in the role’s composite
{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client")
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client"

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}}/:realm/roles-by-id/:role-id/composites/clients/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client"

	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/:realm/roles-by-id/:role-id/composites/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client"))
    .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}}/:realm/roles-by-id/:role-id/composites/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client")
  .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}}/:realm/roles-by-id/:role-id/composites/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client';
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}}/:realm/roles-by-id/:role-id/composites/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id/composites/clients/:client',
  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}}/:realm/roles-by-id/:role-id/composites/clients/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client');

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}}/:realm/roles-by-id/:role-id/composites/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client';
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}}/:realm/roles-by-id/:role-id/composites/clients/:client"]
                                                       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}}/:realm/roles-by-id/:role-id/composites/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client",
  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}}/:realm/roles-by-id/:role-id/composites/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles-by-id/:role-id/composites/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client")

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/:realm/roles-by-id/:role-id/composites/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client";

    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}}/:realm/roles-by-id/:role-id/composites/clients/:client
http GET {{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/clients/:client")! 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 Get realm-level roles that are in the role’s composite
{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm")
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm"

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}}/:realm/roles-by-id/:role-id/composites/realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm"

	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/:realm/roles-by-id/:role-id/composites/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm"))
    .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}}/:realm/roles-by-id/:role-id/composites/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm")
  .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}}/:realm/roles-by-id/:role-id/composites/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm';
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}}/:realm/roles-by-id/:role-id/composites/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id/composites/realm',
  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}}/:realm/roles-by-id/:role-id/composites/realm'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm');

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}}/:realm/roles-by-id/:role-id/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm';
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}}/:realm/roles-by-id/:role-id/composites/realm"]
                                                       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}}/:realm/roles-by-id/:role-id/composites/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm",
  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}}/:realm/roles-by-id/:role-id/composites/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles-by-id/:role-id/composites/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm")

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/:realm/roles-by-id/:role-id/composites/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm";

    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}}/:realm/roles-by-id/:role-id/composites/realm
http GET {{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id/composites/realm")! 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 Get role’s children Returns a set of role’s children provided the role is a composite.
{{baseUrl}}/:realm/roles-by-id/:role-id/composites
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id/composites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

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}}/:realm/roles-by-id/:role-id/composites"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id/composites");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

	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/:realm/roles-by-id/:role-id/composites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id/composites"))
    .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}}/:realm/roles-by-id/:role-id/composites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .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}}/:realm/roles-by-id/:role-id/composites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites';
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}}/:realm/roles-by-id/:role-id/composites',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id/composites',
  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}}/:realm/roles-by-id/:role-id/composites'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles-by-id/:role-id/composites');

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}}/:realm/roles-by-id/:role-id/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites';
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}}/:realm/roles-by-id/:role-id/composites"]
                                                       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}}/:realm/roles-by-id/:role-id/composites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id/composites",
  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}}/:realm/roles-by-id/:role-id/composites');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles-by-id/:role-id/composites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")

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/:realm/roles-by-id/:role-id/composites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites";

    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}}/:realm/roles-by-id/:role-id/composites
http GET {{baseUrl}}/:realm/roles-by-id/:role-id/composites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id/composites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id/composites")! 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 Make the role a composite role by associating some child roles
{{baseUrl}}/:realm/roles-by-id/:role-id/composites
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id/composites");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/roles-by-id/:role-id/composites" {:content-type :json
                                                                                   :form-params [{:attributes {}
                                                                                                  :clientRole false
                                                                                                  :composite false
                                                                                                  :composites {:client {}
                                                                                                               :realm []}
                                                                                                  :containerId ""
                                                                                                  :description ""
                                                                                                  :id ""
                                                                                                  :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles-by-id/:role-id/composites"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id/composites");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/roles-by-id/:role-id/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id/composites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/roles-by-id/:role-id/composites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .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/:realm/roles-by-id/:role-id/composites',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/roles-by-id/:role-id/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles-by-id/:role-id/composites"]
                                                       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}}/:realm/roles-by-id/:role-id/composites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id/composites",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/roles-by-id/:role-id/composites', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
$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}}/:realm/roles-by-id/:role-id/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/roles-by-id/:role-id/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/roles-by-id/:role-id/composites') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/roles-by-id/:role-id/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/roles-by-id/:role-id/composites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id/composites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Remove a set of roles from the role’s composite
{{baseUrl}}/:realm/roles-by-id/:role-id/composites
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id/composites");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/roles-by-id/:role-id/composites" {:content-type :json
                                                                                     :form-params [{:attributes {}
                                                                                                    :clientRole false
                                                                                                    :composite false
                                                                                                    :composites {:client {}
                                                                                                                 :realm []}
                                                                                                    :containerId ""
                                                                                                    :description ""
                                                                                                    :id ""
                                                                                                    :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles-by-id/:role-id/composites"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id/composites");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/roles-by-id/:role-id/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id/composites"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/roles-by-id/:role-id/composites',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id/composites',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/roles-by-id/:role-id/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles-by-id/:role-id/composites"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/roles-by-id/:role-id/composites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id/composites",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/roles-by-id/:role-id/composites', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/composites');
$request->setRequestMethod('DELETE');
$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}}/:realm/roles-by-id/:role-id/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/roles-by-id/:role-id/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id/composites"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id/composites")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/roles-by-id/:role-id/composites') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-id/composites";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/roles-by-id/:role-id/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/roles-by-id/:role-id/composites \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id/composites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Return object stating whether role Authoirzation permissions have been initialized or not and a reference (2)
{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"

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}}/:realm/roles-by-id/:role-id/management/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"

	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/:realm/roles-by-id/:role-id/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"))
    .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}}/:realm/roles-by-id/:role-id/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
  .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}}/:realm/roles-by-id/:role-id/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions';
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}}/:realm/roles-by-id/:role-id/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id/management/permissions',
  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}}/:realm/roles-by-id/:role-id/management/permissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions');

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}}/:realm/roles-by-id/:role-id/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions';
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}}/:realm/roles-by-id/:role-id/management/permissions"]
                                                       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}}/:realm/roles-by-id/:role-id/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions",
  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}}/:realm/roles-by-id/:role-id/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/roles-by-id/:role-id/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")

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/:realm/roles-by-id/:role-id/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions";

    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}}/:realm/roles-by-id/:role-id/management/permissions
http GET {{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Return object stating whether role Authoirzation permissions have been initialized or not and a reference (3)
{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions
BODY json

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions");

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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions" {:content-type :json
                                                                                              :form-params {:enabled false
                                                                                                            :resource ""
                                                                                                            :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"),
    Content = new StringContent("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/roles-by-id/:role-id/management/permissions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"

	payload := strings.NewReader("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/roles-by-id/:role-id/management/permissions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 66

{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
  .header("content-type", "application/json")
  .body("{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
  .asString();
const data = JSON.stringify({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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}}/:realm/roles-by-id/:role-id/management/permissions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id/management/permissions',
  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({enabled: false, resource: '', scopePermissions: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions',
  headers: {'content-type': 'application/json'},
  body: {enabled: false, resource: '', scopePermissions: {}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  enabled: false,
  resource: '',
  scopePermissions: {}
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions',
  headers: {'content-type': 'application/json'},
  data: {enabled: false, resource: '', scopePermissions: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"enabled":false,"resource":"","scopePermissions":{}}'
};

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 = @{ @"enabled": @NO,
                              @"resource": @"",
                              @"scopePermissions": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'enabled' => null,
    'resource' => '',
    'scopePermissions' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'enabled' => null,
  'resource' => '',
  'scopePermissions' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/roles-by-id/:role-id/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"

payload = {
    "enabled": False,
    "resource": "",
    "scopePermissions": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions"

payload <- "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/roles-by-id/:role-id/management/permissions') do |req|
  req.body = "{\n  \"enabled\": false,\n  \"resource\": \"\",\n  \"scopePermissions\": {}\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}}/:realm/roles-by-id/:role-id/management/permissions";

    let payload = json!({
        "enabled": false,
        "resource": "",
        "scopePermissions": json!({})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "enabled": false,\n  "resource": "",\n  "scopePermissions": {}\n}' \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "enabled": false,
  "resource": "",
  "scopePermissions": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id/management/permissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update the role
{{baseUrl}}/:realm/roles-by-id/:role-id
BODY json

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/roles-by-id/:role-id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/roles-by-id/:role-id" {:content-type :json
                                                                       :form-params {:attributes {}
                                                                                     :clientRole false
                                                                                     :composite false
                                                                                     :composites {:client {}
                                                                                                  :realm []}
                                                                                     :containerId ""
                                                                                     :description ""
                                                                                     :id ""
                                                                                     :name ""}})
require "http/client"

url = "{{baseUrl}}/:realm/roles-by-id/:role-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/roles-by-id/:role-id"),
    Content = new StringContent("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/roles-by-id/:role-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/roles-by-id/:role-id"

	payload := strings.NewReader("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/roles-by-id/:role-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 192

{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/roles-by-id/:role-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/roles-by-id/:role-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/roles-by-id/:role-id")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/roles-by-id/:role-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/roles-by-id/:role-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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}}/:realm/roles-by-id/:role-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/roles-by-id/:role-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/roles-by-id/:role-id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {client: {}, realm: []},
  containerId: '',
  description: '',
  id: '',
  name: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/roles-by-id/:role-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: {},
  clientRole: false,
  composite: false,
  composites: {
    client: {},
    realm: []
  },
  containerId: '',
  description: '',
  id: '',
  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: 'PUT',
  url: '{{baseUrl}}/:realm/roles-by-id/:role-id',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/roles-by-id/:role-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}'
};

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 = @{ @"attributes": @{  },
                              @"clientRole": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"client": @{  }, @"realm": @[  ] },
                              @"containerId": @"",
                              @"description": @"",
                              @"id": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/roles-by-id/:role-id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/roles-by-id/:role-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/roles-by-id/:role-id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/roles-by-id/:role-id', [
  'body' => '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/roles-by-id/:role-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    
  ],
  'clientRole' => null,
  'composite' => null,
  'composites' => [
    'client' => [
        
    ],
    'realm' => [
        
    ]
  ],
  'containerId' => '',
  'description' => '',
  'id' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/roles-by-id/:role-id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/roles-by-id/:role-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/roles-by-id/:role-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/roles-by-id/:role-id"

payload = {
    "attributes": {},
    "clientRole": False,
    "composite": False,
    "composites": {
        "client": {},
        "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/roles-by-id/:role-id"

payload <- "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/roles-by-id/:role-id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/roles-by-id/:role-id') do |req|
  req.body = "{\n  \"attributes\": {},\n  \"clientRole\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"client\": {},\n    \"realm\": []\n  },\n  \"containerId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"name\": \"\"\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}}/:realm/roles-by-id/:role-id";

    let payload = json!({
        "attributes": json!({}),
        "clientRole": false,
        "composite": false,
        "composites": json!({
            "client": json!({}),
            "realm": ()
        }),
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/roles-by-id/:role-id \
  --header 'content-type: application/json' \
  --data '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}'
echo '{
  "attributes": {},
  "clientRole": false,
  "composite": false,
  "composites": {
    "client": {},
    "realm": []
  },
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/:realm/roles-by-id/:role-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": {},\n  "clientRole": false,\n  "composite": false,\n  "composites": {\n    "client": {},\n    "realm": []\n  },\n  "containerId": "",\n  "description": "",\n  "id": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/roles-by-id/:role-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [],
  "clientRole": false,
  "composite": false,
  "composites": [
    "client": [],
    "realm": []
  ],
  "containerId": "",
  "description": "",
  "id": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/roles-by-id/:role-id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get themes, social providers, auth providers, and event listeners available on this server
{{baseUrl}}/
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/")
require "http/client"

url = "{{baseUrl}}/"

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}}/"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/"

	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/ HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/"))
    .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}}/")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/")
  .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}}/');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/';
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}}/',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/',
  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}}/'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/');

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}}/'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/';
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}}/"]
                                                       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}}/" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/",
  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}}/');

echo $response->getBody();
setUrl('{{baseUrl}}/');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/")

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/') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/";

    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}}/
http GET {{baseUrl}}/
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/")! 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 Add a set of realm-level roles to the client’s scope (POST)
{{baseUrl}}/:realm/clients/:id/scope-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm" {:content-type :json
                                                                                    :form-params [{:attributes {}
                                                                                                   :clientRole false
                                                                                                   :composite false
                                                                                                   :composites {:client {}
                                                                                                                :realm []}
                                                                                                   :containerId ""
                                                                                                   :description ""
                                                                                                   :id ""
                                                                                                   :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/clients/:id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/clients/:id/scope-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .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/:realm/clients/:id/scope-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/clients/:id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"]
                                                       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}}/:realm/clients/:id/scope-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/clients/:id/scope-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
$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}}/:realm/clients/:id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/clients/:id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/clients/:id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/clients/:id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add a set of realm-level roles to the client’s scope
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm" {:content-type :json
                                                                                          :form-params [{:attributes {}
                                                                                                         :clientRole false
                                                                                                         :composite false
                                                                                                         :composites {:client {}
                                                                                                                      :realm []}
                                                                                                         :containerId ""
                                                                                                         :description ""
                                                                                                         :id ""
                                                                                                         :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/client-scopes/:id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/client-scopes/:id/scope-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .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/:realm/client-scopes/:id/scope-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/client-scopes/:id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/client-scopes/:id/scope-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
$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}}/:realm/client-scopes/:id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/client-scopes/:id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/client-scopes/:id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/client-scopes/:id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add client-level roles to the client’s scope (POST)
{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client" {:content-type :json
                                                                                              :form-params [{:attributes {}
                                                                                                             :clientRole false
                                                                                                             :composite false
                                                                                                             :composites {:client {}
                                                                                                                          :realm []}
                                                                                                             :containerId ""
                                                                                                             :description ""
                                                                                                             :id ""
                                                                                                             :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/clients/:id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/clients/:id/scope-mappings/clients/:client',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .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/:realm/clients/:id/scope-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/clients/:id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"]
                                                       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}}/:realm/clients/:id/scope-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/clients/:id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
$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}}/:realm/clients/:id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/clients/:id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/clients/:id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/clients/:id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Add client-level roles to the client’s scope
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client" {:content-type :json
                                                                                                    :form-params [{:attributes {}
                                                                                                                   :clientRole false
                                                                                                                   :composite false
                                                                                                                   :composites {:client {}
                                                                                                                                :realm []}
                                                                                                                   :containerId ""
                                                                                                                   :description ""
                                                                                                                   :id ""
                                                                                                                   :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .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/:realm/client-scopes/:id/scope-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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: 'POST',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client",
  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([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
$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}}/:realm/client-scopes/:id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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}}/:realm/client-scopes/:id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http POST {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")! 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 Get all scope mappings for the client (GET)
{{baseUrl}}/:realm/clients/:id/scope-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/scope-mappings")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings"

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}}/:realm/clients/:id/scope-mappings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings"

	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/:realm/clients/:id/scope-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/scope-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings"))
    .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}}/:realm/clients/:id/scope-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/scope-mappings")
  .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}}/:realm/clients/:id/scope-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings';
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}}/:realm/clients/:id/scope-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings',
  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}}/:realm/clients/:id/scope-mappings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/scope-mappings');

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}}/:realm/clients/:id/scope-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings';
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}}/:realm/clients/:id/scope-mappings"]
                                                       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}}/:realm/clients/:id/scope-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings",
  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}}/:realm/clients/:id/scope-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/scope-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings")

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/:realm/clients/:id/scope-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings";

    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}}/:realm/clients/:id/scope-mappings
http GET {{baseUrl}}/:realm/clients/:id/scope-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings")! 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 Get all scope mappings for the client
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings"

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}}/:realm/client-scopes/:id/scope-mappings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings"

	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/:realm/client-scopes/:id/scope-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings"))
    .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}}/:realm/client-scopes/:id/scope-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings")
  .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}}/:realm/client-scopes/:id/scope-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings';
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}}/:realm/client-scopes/:id/scope-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings',
  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}}/:realm/client-scopes/:id/scope-mappings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings');

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}}/:realm/client-scopes/:id/scope-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings';
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}}/:realm/client-scopes/:id/scope-mappings"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings",
  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}}/:realm/client-scopes/:id/scope-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/scope-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings")

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/:realm/client-scopes/:id/scope-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings";

    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}}/:realm/client-scopes/:id/scope-mappings
http GET {{baseUrl}}/:realm/client-scopes/:id/scope-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings")! 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 Get effective client roles Returns the roles for the client that are associated with the client’s scope. (GET)
{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite"

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}}/:realm/clients/:id/scope-mappings/clients/:client/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite"

	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/:realm/clients/:id/scope-mappings/clients/:client/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite"))
    .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}}/:realm/clients/:id/scope-mappings/clients/:client/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite")
  .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}}/:realm/clients/:id/scope-mappings/clients/:client/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite';
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}}/:realm/clients/:id/scope-mappings/clients/:client/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/clients/:client/composite',
  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}}/:realm/clients/:id/scope-mappings/clients/:client/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite');

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}}/:realm/clients/:id/scope-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite';
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}}/:realm/clients/:id/scope-mappings/clients/:client/composite"]
                                                       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}}/:realm/clients/:id/scope-mappings/clients/:client/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite",
  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}}/:realm/clients/:id/scope-mappings/clients/:client/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/scope-mappings/clients/:client/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite")

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/:realm/clients/:id/scope-mappings/clients/:client/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite";

    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}}/:realm/clients/:id/scope-mappings/clients/:client/composite
http GET {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/composite")! 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 Get effective client roles Returns the roles for the client that are associated with the client’s scope.
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite"

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite"

	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/:realm/client-scopes/:id/scope-mappings/clients/:client/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite"))
    .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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")
  .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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite';
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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client/composite',
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite');

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite';
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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite",
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")

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/:realm/client-scopes/:id/scope-mappings/clients/:client/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite";

    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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite
http GET {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/composite")! 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 Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. (GET)
{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite"

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}}/:realm/clients/:id/scope-mappings/realm/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite"

	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/:realm/clients/:id/scope-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite"))
    .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}}/:realm/clients/:id/scope-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite")
  .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}}/:realm/clients/:id/scope-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite';
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}}/:realm/clients/:id/scope-mappings/realm/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/realm/composite',
  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}}/:realm/clients/:id/scope-mappings/realm/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite');

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}}/:realm/clients/:id/scope-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite';
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}}/:realm/clients/:id/scope-mappings/realm/composite"]
                                                       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}}/:realm/clients/:id/scope-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite",
  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}}/:realm/clients/:id/scope-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/scope-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite")

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/:realm/clients/:id/scope-mappings/realm/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite";

    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}}/:realm/clients/:id/scope-mappings/realm/composite
http GET {{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/composite")! 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 Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists.
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite"

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}}/:realm/client-scopes/:id/scope-mappings/realm/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite"

	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/:realm/client-scopes/:id/scope-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite"))
    .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}}/:realm/client-scopes/:id/scope-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite")
  .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}}/:realm/client-scopes/:id/scope-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite';
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}}/:realm/client-scopes/:id/scope-mappings/realm/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/realm/composite',
  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}}/:realm/client-scopes/:id/scope-mappings/realm/composite'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite');

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}}/:realm/client-scopes/:id/scope-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite';
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}}/:realm/client-scopes/:id/scope-mappings/realm/composite"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite",
  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}}/:realm/client-scopes/:id/scope-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/scope-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite")

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/:realm/client-scopes/:id/scope-mappings/realm/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite";

    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}}/:realm/client-scopes/:id/scope-mappings/realm/composite
http GET {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/composite")! 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 Get realm-level roles associated with the client’s scope (GET)
{{baseUrl}}/:realm/clients/:id/scope-mappings/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

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}}/:realm/clients/:id/scope-mappings/realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

	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/:realm/clients/:id/scope-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"))
    .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}}/:realm/clients/:id/scope-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .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}}/:realm/clients/:id/scope-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm';
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}}/:realm/clients/:id/scope-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/realm',
  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}}/:realm/clients/:id/scope-mappings/realm'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');

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}}/:realm/clients/:id/scope-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm';
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}}/:realm/clients/:id/scope-mappings/realm"]
                                                       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}}/:realm/clients/:id/scope-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm",
  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}}/:realm/clients/:id/scope-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/scope-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")

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/:realm/clients/:id/scope-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm";

    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}}/:realm/clients/:id/scope-mappings/realm
http GET {{baseUrl}}/:realm/clients/:id/scope-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")! 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 Get realm-level roles associated with the client’s scope
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

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}}/:realm/client-scopes/:id/scope-mappings/realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

	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/:realm/client-scopes/:id/scope-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"))
    .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}}/:realm/client-scopes/:id/scope-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .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}}/:realm/client-scopes/:id/scope-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm';
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}}/:realm/client-scopes/:id/scope-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/realm',
  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}}/:realm/client-scopes/:id/scope-mappings/realm'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');

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}}/:realm/client-scopes/:id/scope-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm';
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}}/:realm/client-scopes/:id/scope-mappings/realm"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm",
  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}}/:realm/client-scopes/:id/scope-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/scope-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")

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/:realm/client-scopes/:id/scope-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm";

    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}}/:realm/client-scopes/:id/scope-mappings/realm
http GET {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")! 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 Get realm-level roles that are available to attach to this client’s scope (GET)
{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available"

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}}/:realm/clients/:id/scope-mappings/realm/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available"

	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/:realm/clients/:id/scope-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available"))
    .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}}/:realm/clients/:id/scope-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available")
  .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}}/:realm/clients/:id/scope-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available';
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}}/:realm/clients/:id/scope-mappings/realm/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/realm/available',
  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}}/:realm/clients/:id/scope-mappings/realm/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available');

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}}/:realm/clients/:id/scope-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available';
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}}/:realm/clients/:id/scope-mappings/realm/available"]
                                                       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}}/:realm/clients/:id/scope-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available",
  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}}/:realm/clients/:id/scope-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/scope-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available")

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/:realm/clients/:id/scope-mappings/realm/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available";

    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}}/:realm/clients/:id/scope-mappings/realm/available
http GET {{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm/available")! 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 Get realm-level roles that are available to attach to this client’s scope
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available"

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}}/:realm/client-scopes/:id/scope-mappings/realm/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available"

	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/:realm/client-scopes/:id/scope-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available"))
    .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}}/:realm/client-scopes/:id/scope-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available")
  .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}}/:realm/client-scopes/:id/scope-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available';
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}}/:realm/client-scopes/:id/scope-mappings/realm/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/realm/available',
  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}}/:realm/client-scopes/:id/scope-mappings/realm/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available');

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}}/:realm/client-scopes/:id/scope-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available';
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}}/:realm/client-scopes/:id/scope-mappings/realm/available"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available",
  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}}/:realm/client-scopes/:id/scope-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/scope-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available")

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/:realm/client-scopes/:id/scope-mappings/realm/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available";

    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}}/:realm/client-scopes/:id/scope-mappings/realm/available
http GET {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm/available")! 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 Get the roles associated with a client’s scope Returns roles for the client. (GET)
{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

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}}/:realm/clients/:id/scope-mappings/clients/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

	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/:realm/clients/:id/scope-mappings/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"))
    .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}}/:realm/clients/:id/scope-mappings/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .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}}/:realm/clients/:id/scope-mappings/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client';
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}}/:realm/clients/:id/scope-mappings/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/clients/:client',
  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}}/:realm/clients/:id/scope-mappings/clients/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');

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}}/:realm/clients/:id/scope-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client';
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}}/:realm/clients/:id/scope-mappings/clients/:client"]
                                                       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}}/:realm/clients/:id/scope-mappings/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client",
  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}}/:realm/clients/:id/scope-mappings/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/scope-mappings/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")

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/:realm/clients/:id/scope-mappings/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client";

    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}}/:realm/clients/:id/scope-mappings/clients/:client
http GET {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")! 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 Get the roles associated with a client’s scope Returns roles for the client.
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

	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/:realm/client-scopes/:id/scope-mappings/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"))
    .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}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .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}}/:realm/client-scopes/:id/scope-mappings/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client';
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}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client',
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client';
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}}/:realm/client-scopes/:id/scope-mappings/clients/:client"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client",
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")

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/:realm/client-scopes/:id/scope-mappings/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client";

    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}}/:realm/client-scopes/:id/scope-mappings/clients/:client
http GET {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")! 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 Remove a set of realm-level roles from the client’s scope (DELETE)
{{baseUrl}}/:realm/clients/:id/scope-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm" {:content-type :json
                                                                                      :form-params [{:attributes {}
                                                                                                     :clientRole false
                                                                                                     :composite false
                                                                                                     :composites {:client {}
                                                                                                                  :realm []}
                                                                                                     :containerId ""
                                                                                                     :description ""
                                                                                                     :id ""
                                                                                                     :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/clients/:id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/clients/:id/scope-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/clients/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/clients/:id/scope-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/realm');
$request->setRequestMethod('DELETE');
$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}}/:realm/clients/:id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/clients/:id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/clients/:id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/clients/:id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/clients/:id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Remove a set of realm-level roles from the client’s scope
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm" {:content-type :json
                                                                                            :form-params [{:attributes {}
                                                                                                           :clientRole false
                                                                                                           :composite false
                                                                                                           :composites {:client {}
                                                                                                                        :realm []}
                                                                                                           :containerId ""
                                                                                                           :description ""
                                                                                                           :id ""
                                                                                                           :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/client-scopes/:id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/client-scopes/:id/scope-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/realm',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/client-scopes/:id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/client-scopes/:id/scope-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm');
$request->setRequestMethod('DELETE');
$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}}/:realm/client-scopes/:id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/client-scopes/:id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/client-scopes/:id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/realm")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Remove client-level roles from the client’s scope. (DELETE)
{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client" {:content-type :json
                                                                                                :form-params [{:attributes {}
                                                                                                               :clientRole false
                                                                                                               :composite false
                                                                                                               :composites {:client {}
                                                                                                                            :realm []}
                                                                                                               :containerId ""
                                                                                                               :description ""
                                                                                                               :id ""
                                                                                                               :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/clients/:id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/clients/:id/scope-mappings/clients/:client',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/clients/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/clients/:id/scope-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client');
$request->setRequestMethod('DELETE');
$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}}/:realm/clients/:id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/clients/:id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/clients/:id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 Remove client-level roles from the client’s scope.
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client
BODY json

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client");

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  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client" {:content-type :json
                                                                                                      :form-params [{:attributes {}
                                                                                                                     :clientRole false
                                                                                                                     :composite false
                                                                                                                     :composites {:client {}
                                                                                                                                  :realm []}
                                                                                                                     :containerId ""
                                                                                                                     :description ""
                                                                                                                     :id ""
                                                                                                                     :name ""}]})
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = HTTP::Client.delete url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")

	req, _ := http.NewRequest("DELETE", 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))

}
DELETE /baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 222

[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client',
  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([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {client: {}, realm: []},
    containerId: '',
    description: '',
    id: '',
    name: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    attributes: {},
    clientRole: false,
    composite: false,
    composites: {
      client: {},
      realm: []
    },
    containerId: '',
    description: '',
    id: '',
    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}}/:realm/client-scopes/:id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      attributes: {},
      clientRole: false,
      composite: false,
      composites: {client: {}, realm: []},
      containerId: '',
      description: '',
      id: '',
      name: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"attributes":{},"clientRole":false,"composite":false,"composites":{"client":{},"realm":[]},"containerId":"","description":"","id":"","name":""}]'
};

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 = @[ @{ @"attributes": @{  }, @"clientRole": @NO, @"composite": @NO, @"composites": @{ @"client": @{  }, @"realm": @[  ] }, @"containerId": @"", @"description": @"", @"id": @"", @"name": @"" } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/:realm/client-scopes/:id/scope-mappings/clients/:client" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  CURLOPT_POSTFIELDS => json_encode([
    [
        'attributes' => [
                
        ],
        'clientRole' => null,
        'composite' => null,
        'composites' => [
                'client' => [
                                
                ],
                'realm' => [
                                
                ]
        ],
        'containerId' => '',
        'description' => '',
        'id' => '',
        'name' => ''
    ]
  ]),
  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('DELETE', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'attributes' => [
        
    ],
    'clientRole' => null,
    'composite' => null,
    'composites' => [
        'client' => [
                
        ],
        'realm' => [
                
        ]
    ],
    'containerId' => '',
    'description' => '',
    'id' => '',
    'name' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client');
$request->setRequestMethod('DELETE');
$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}}/:realm/client-scopes/:id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

payload = [
    {
        "attributes": {},
        "clientRole": False,
        "composite": False,
        "composites": {
            "client": {},
            "realm": []
        },
        "containerId": "",
        "description": "",
        "id": "",
        "name": ""
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

encode <- "json"

response <- VERB("DELETE", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.delete('/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"attributes\": {},\n    \"clientRole\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"client\": {},\n      \"realm\": []\n    },\n    \"containerId\": \"\",\n    \"description\": \"\",\n    \"id\": \"\",\n    \"name\": \"\"\n  }\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "attributes": json!({}),
            "clientRole": false,
            "composite": false,
            "composites": json!({
                "client": json!({}),
                "realm": ()
            }),
            "containerId": "",
            "description": "",
            "id": "",
            "name": ""
        })
    );

    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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]'
echo '[
  {
    "attributes": {},
    "clientRole": false,
    "composite": false,
    "composites": {
      "client": {},
      "realm": []
    },
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  }
]' |  \
  http DELETE {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "attributes": {},\n    "clientRole": false,\n    "composite": false,\n    "composites": {\n      "client": {},\n      "realm": []\n    },\n    "containerId": "",\n    "description": "",\n    "id": "",\n    "name": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "attributes": [],
    "clientRole": false,
    "composite": false,
    "composites": [
      "client": [],
      "realm": []
    ],
    "containerId": "",
    "description": "",
    "id": "",
    "name": ""
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"
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 The available client-level roles Returns the roles for the client that can be associated with the client’s scope (GET)
{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available")
require "http/client"

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available"

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}}/:realm/clients/:id/scope-mappings/clients/:client/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available"

	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/:realm/clients/:id/scope-mappings/clients/:client/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available"))
    .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}}/:realm/clients/:id/scope-mappings/clients/:client/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available")
  .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}}/:realm/clients/:id/scope-mappings/clients/:client/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available';
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}}/:realm/clients/:id/scope-mappings/clients/:client/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/clients/:id/scope-mappings/clients/:client/available',
  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}}/:realm/clients/:id/scope-mappings/clients/:client/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available');

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}}/:realm/clients/:id/scope-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available';
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}}/:realm/clients/:id/scope-mappings/clients/:client/available"]
                                                       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}}/:realm/clients/:id/scope-mappings/clients/:client/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available",
  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}}/:realm/clients/:id/scope-mappings/clients/:client/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/clients/:id/scope-mappings/clients/:client/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available")

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/:realm/clients/:id/scope-mappings/clients/:client/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available";

    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}}/:realm/clients/:id/scope-mappings/clients/:client/available
http GET {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/clients/:id/scope-mappings/clients/:client/available")! 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 The available client-level roles Returns the roles for the client that can be associated with the client’s scope
{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available")
require "http/client"

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available"

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available"

	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/:realm/client-scopes/:id/scope-mappings/clients/:client/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available"))
    .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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available")
  .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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available';
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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client/available',
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available');

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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available';
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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available"]
                                                       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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available",
  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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/client-scopes/:id/scope-mappings/clients/:client/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available")

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/:realm/client-scopes/:id/scope-mappings/clients/:client/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available";

    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}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available
http GET {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/client-scopes/:id/scope-mappings/clients/:client/available")! 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 Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328
{{baseUrl}}/:id/name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:id/name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:id/name")
require "http/client"

url = "{{baseUrl}}/:id/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}}/:id/name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:id/name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:id/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/:id/name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:id/name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:id/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}}/:id/name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:id/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}}/:id/name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:id/name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:id/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}}/:id/name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:id/name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:id/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}}/:id/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}}/:id/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}}/:id/name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:id/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}}/:id/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}}/:id/name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:id/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}}/:id/name');

echo $response->getBody();
setUrl('{{baseUrl}}/:id/name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:id/name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:id/name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:id/name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:id/name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:id/name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:id/name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:id/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/:id/name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:id/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}}/:id/name
http GET {{baseUrl}}/:id/name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:id/name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:id/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 Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328
{{baseUrl}}/:realm/user-storage/:id/name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/user-storage/:id/name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/user-storage/:id/name")
require "http/client"

url = "{{baseUrl}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/user-storage/:id/name");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/user-storage/:id/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/:realm/user-storage/:id/name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/user-storage/:id/name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/user-storage/:id/name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/user-storage/:id/name")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/user-storage/:id/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}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/user-storage/:id/name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/user-storage/:id/name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/user-storage/:id/name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/user-storage/:id/name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/user-storage/:id/name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/user-storage/:id/name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/user-storage/:id/name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/user-storage/:id/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/:realm/user-storage/:id/name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/user-storage/:id/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}}/:realm/user-storage/:id/name
http GET {{baseUrl}}/:realm/user-storage/:id/name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/user-storage/:id/name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/user-storage/:id/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 Remove imported users
{{baseUrl}}/:realm/user-storage/:id/remove-imported-users
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users")
require "http/client"

url = "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users"

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}}/:realm/user-storage/:id/remove-imported-users"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/user-storage/:id/remove-imported-users");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users"

	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/:realm/user-storage/:id/remove-imported-users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/user-storage/:id/remove-imported-users"))
    .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}}/:realm/user-storage/:id/remove-imported-users")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/user-storage/:id/remove-imported-users")
  .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}}/:realm/user-storage/:id/remove-imported-users');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/user-storage/:id/remove-imported-users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/user-storage/:id/remove-imported-users';
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}}/:realm/user-storage/:id/remove-imported-users',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/user-storage/:id/remove-imported-users")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/user-storage/:id/remove-imported-users',
  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}}/:realm/user-storage/:id/remove-imported-users'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/user-storage/:id/remove-imported-users');

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}}/:realm/user-storage/:id/remove-imported-users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/user-storage/:id/remove-imported-users';
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}}/:realm/user-storage/:id/remove-imported-users"]
                                                       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}}/:realm/user-storage/:id/remove-imported-users" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users",
  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}}/:realm/user-storage/:id/remove-imported-users');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/user-storage/:id/remove-imported-users');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/user-storage/:id/remove-imported-users');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/user-storage/:id/remove-imported-users' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/user-storage/:id/remove-imported-users' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/user-storage/:id/remove-imported-users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/user-storage/:id/remove-imported-users")

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/:realm/user-storage/:id/remove-imported-users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users";

    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}}/:realm/user-storage/:id/remove-imported-users
http POST {{baseUrl}}/:realm/user-storage/:id/remove-imported-users
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/user-storage/:id/remove-imported-users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/user-storage/:id/remove-imported-users")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync")
require "http/client"

url = "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync"

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}}/:realm/user-storage/:parentId/mappers/:id/sync"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync"

	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/:realm/user-storage/:parentId/mappers/:id/sync HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync"))
    .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}}/:realm/user-storage/:parentId/mappers/:id/sync")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync")
  .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}}/:realm/user-storage/:parentId/mappers/:id/sync');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync';
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}}/:realm/user-storage/:parentId/mappers/:id/sync',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/user-storage/:parentId/mappers/:id/sync',
  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}}/:realm/user-storage/:parentId/mappers/:id/sync'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync');

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}}/:realm/user-storage/:parentId/mappers/:id/sync'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync';
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}}/:realm/user-storage/:parentId/mappers/:id/sync"]
                                                       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}}/:realm/user-storage/:parentId/mappers/:id/sync" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync",
  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}}/:realm/user-storage/:parentId/mappers/:id/sync');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/user-storage/:parentId/mappers/:id/sync")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync")

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/:realm/user-storage/:parentId/mappers/:id/sync') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync";

    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}}/:realm/user-storage/:parentId/mappers/:id/sync
http POST {{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/user-storage/:parentId/mappers/:id/sync")! 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 Trigger sync of users Action can be -triggerFullSync- or -triggerChangedUsersSync-
{{baseUrl}}/:realm/user-storage/:id/sync
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/user-storage/:id/sync");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/user-storage/:id/sync")
require "http/client"

url = "{{baseUrl}}/:realm/user-storage/:id/sync"

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}}/:realm/user-storage/:id/sync"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/user-storage/:id/sync");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/user-storage/:id/sync"

	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/:realm/user-storage/:id/sync HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/user-storage/:id/sync")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/user-storage/:id/sync"))
    .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}}/:realm/user-storage/:id/sync")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/user-storage/:id/sync")
  .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}}/:realm/user-storage/:id/sync');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/user-storage/:id/sync'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/user-storage/:id/sync';
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}}/:realm/user-storage/:id/sync',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/user-storage/:id/sync")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/user-storage/:id/sync',
  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}}/:realm/user-storage/:id/sync'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/user-storage/:id/sync');

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}}/:realm/user-storage/:id/sync'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/user-storage/:id/sync';
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}}/:realm/user-storage/:id/sync"]
                                                       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}}/:realm/user-storage/:id/sync" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/user-storage/:id/sync",
  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}}/:realm/user-storage/:id/sync');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/user-storage/:id/sync');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/user-storage/:id/sync');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/user-storage/:id/sync' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/user-storage/:id/sync' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/user-storage/:id/sync")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/user-storage/:id/sync"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/user-storage/:id/sync"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/user-storage/:id/sync")

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/:realm/user-storage/:id/sync') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/user-storage/:id/sync";

    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}}/:realm/user-storage/:id/sync
http POST {{baseUrl}}/:realm/user-storage/:id/sync
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/user-storage/:id/sync
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/user-storage/:id/sync")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/user-storage/:id/unlink-users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/user-storage/:id/unlink-users")
require "http/client"

url = "{{baseUrl}}/:realm/user-storage/:id/unlink-users"

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}}/:realm/user-storage/:id/unlink-users"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/user-storage/:id/unlink-users");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/user-storage/:id/unlink-users"

	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/:realm/user-storage/:id/unlink-users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/user-storage/:id/unlink-users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/user-storage/:id/unlink-users"))
    .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}}/:realm/user-storage/:id/unlink-users")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/user-storage/:id/unlink-users")
  .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}}/:realm/user-storage/:id/unlink-users');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/user-storage/:id/unlink-users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/user-storage/:id/unlink-users';
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}}/:realm/user-storage/:id/unlink-users',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/user-storage/:id/unlink-users")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/user-storage/:id/unlink-users',
  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}}/:realm/user-storage/:id/unlink-users'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/user-storage/:id/unlink-users');

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}}/:realm/user-storage/:id/unlink-users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/user-storage/:id/unlink-users';
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}}/:realm/user-storage/:id/unlink-users"]
                                                       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}}/:realm/user-storage/:id/unlink-users" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/user-storage/:id/unlink-users",
  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}}/:realm/user-storage/:id/unlink-users');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/user-storage/:id/unlink-users');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/user-storage/:id/unlink-users');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/user-storage/:id/unlink-users' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/user-storage/:id/unlink-users' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/user-storage/:id/unlink-users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/user-storage/:id/unlink-users"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/user-storage/:id/unlink-users"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/user-storage/:id/unlink-users")

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/:realm/user-storage/:id/unlink-users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/user-storage/:id/unlink-users";

    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}}/:realm/user-storage/:id/unlink-users
http POST {{baseUrl}}/:realm/user-storage/:id/unlink-users
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/user-storage/:id/unlink-users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/user-storage/:id/unlink-users")! 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 Add a social login provider to the user
{{baseUrl}}/:realm/users/:id/federated-identity/:provider
BODY json

{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/federated-identity/:provider");

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  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users/:id/federated-identity/:provider" {:content-type :json
                                                                                          :form-params {:identityProvider ""
                                                                                                        :userId ""
                                                                                                        :userName ""}})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\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}}/:realm/users/:id/federated-identity/:provider"),
    Content = new StringContent("{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\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}}/:realm/users/:id/federated-identity/:provider");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"

	payload := strings.NewReader("{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\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/:realm/users/:id/federated-identity/:provider HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 62

{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/federated-identity/:provider"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\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  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
  .header("content-type", "application/json")
  .body("{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  identityProvider: '',
  userId: '',
  userName: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/users/:id/federated-identity/:provider');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/federated-identity/:provider',
  headers: {'content-type': 'application/json'},
  data: {identityProvider: '', userId: '', userName: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/federated-identity/:provider';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"identityProvider":"","userId":"","userName":""}'
};

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}}/:realm/users/:id/federated-identity/:provider',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "identityProvider": "",\n  "userId": "",\n  "userName": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
  .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/:realm/users/:id/federated-identity/:provider',
  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({identityProvider: '', userId: '', userName: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/federated-identity/:provider',
  headers: {'content-type': 'application/json'},
  body: {identityProvider: '', userId: '', userName: ''},
  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}}/:realm/users/:id/federated-identity/:provider');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  identityProvider: '',
  userId: '',
  userName: ''
});

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}}/:realm/users/:id/federated-identity/:provider',
  headers: {'content-type': 'application/json'},
  data: {identityProvider: '', userId: '', userName: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/federated-identity/:provider';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"identityProvider":"","userId":"","userName":""}'
};

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 = @{ @"identityProvider": @"",
                              @"userId": @"",
                              @"userName": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/federated-identity/:provider"]
                                                       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}}/:realm/users/:id/federated-identity/:provider" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/federated-identity/:provider",
  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([
    'identityProvider' => '',
    'userId' => '',
    'userName' => ''
  ]),
  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}}/:realm/users/:id/federated-identity/:provider', [
  'body' => '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/federated-identity/:provider');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'identityProvider' => '',
  'userId' => '',
  'userName' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'identityProvider' => '',
  'userId' => '',
  'userName' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/federated-identity/:provider');
$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}}/:realm/users/:id/federated-identity/:provider' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/federated-identity/:provider' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/users/:id/federated-identity/:provider", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"

payload = {
    "identityProvider": "",
    "userId": "",
    "userName": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"

payload <- "{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\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}}/:realm/users/:id/federated-identity/:provider")

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  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\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/:realm/users/:id/federated-identity/:provider') do |req|
  req.body = "{\n  \"identityProvider\": \"\",\n  \"userId\": \"\",\n  \"userName\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/federated-identity/:provider";

    let payload = json!({
        "identityProvider": "",
        "userId": "",
        "userName": ""
    });

    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}}/:realm/users/:id/federated-identity/:provider \
  --header 'content-type: application/json' \
  --data '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}'
echo '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}' |  \
  http POST {{baseUrl}}/:realm/users/:id/federated-identity/:provider \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "identityProvider": "",\n  "userId": "",\n  "userName": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/federated-identity/:provider
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "identityProvider": "",
  "userId": "",
  "userName": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/federated-identity/:provider")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Create a new user Username must be unique.
{{baseUrl}}/:realm/users
BODY json

{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users");

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  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users" {:content-type :json
                                                         :form-params {:access {}
                                                                       :attributes {}
                                                                       :clientConsents [{:clientId ""
                                                                                         :createdDate 0
                                                                                         :grantedClientScopes []
                                                                                         :lastUpdatedDate 0}]
                                                                       :clientRoles {}
                                                                       :createdTimestamp 0
                                                                       :credentials [{:createdDate 0
                                                                                      :credentialData ""
                                                                                      :id ""
                                                                                      :priority 0
                                                                                      :secretData ""
                                                                                      :temporary false
                                                                                      :type ""
                                                                                      :userLabel ""
                                                                                      :value ""}]
                                                                       :disableableCredentialTypes []
                                                                       :email ""
                                                                       :emailVerified false
                                                                       :enabled false
                                                                       :federatedIdentities [{:identityProvider ""
                                                                                              :userId ""
                                                                                              :userName ""}]
                                                                       :federationLink ""
                                                                       :firstName ""
                                                                       :groups []
                                                                       :id ""
                                                                       :lastName ""
                                                                       :notBefore 0
                                                                       :origin ""
                                                                       :realmRoles []
                                                                       :requiredActions []
                                                                       :self ""
                                                                       :serviceAccountClientId ""
                                                                       :username ""}})
require "http/client"

url = "{{baseUrl}}/:realm/users"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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}}/:realm/users"),
    Content = new StringContent("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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}}/:realm/users");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users"

	payload := strings.NewReader("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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/:realm/users HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 907

{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users")
  .header("content-type", "application/json")
  .body("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  access: {},
  attributes: {},
  clientConsents: [
    {
      clientId: '',
      createdDate: 0,
      grantedClientScopes: [],
      lastUpdatedDate: 0
    }
  ],
  clientRoles: {},
  createdTimestamp: 0,
  credentials: [
    {
      createdDate: 0,
      credentialData: '',
      id: '',
      priority: 0,
      secretData: '',
      temporary: false,
      type: '',
      userLabel: '',
      value: ''
    }
  ],
  disableableCredentialTypes: [],
  email: '',
  emailVerified: false,
  enabled: false,
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  federationLink: '',
  firstName: '',
  groups: [],
  id: '',
  lastName: '',
  notBefore: 0,
  origin: '',
  realmRoles: [],
  requiredActions: [],
  self: '',
  serviceAccountClientId: '',
  username: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/:realm/users');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
    clientRoles: {},
    createdTimestamp: 0,
    credentials: [
      {
        createdDate: 0,
        credentialData: '',
        id: '',
        priority: 0,
        secretData: '',
        temporary: false,
        type: '',
        userLabel: '',
        value: ''
      }
    ],
    disableableCredentialTypes: [],
    email: '',
    emailVerified: false,
    enabled: false,
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    federationLink: '',
    firstName: '',
    groups: [],
    id: '',
    lastName: '',
    notBefore: 0,
    origin: '',
    realmRoles: [],
    requiredActions: [],
    self: '',
    serviceAccountClientId: '',
    username: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}'
};

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}}/:realm/users',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access": {},\n  "attributes": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "createdDate": 0,\n      "grantedClientScopes": [],\n      "lastUpdatedDate": 0\n    }\n  ],\n  "clientRoles": {},\n  "createdTimestamp": 0,\n  "credentials": [\n    {\n      "createdDate": 0,\n      "credentialData": "",\n      "id": "",\n      "priority": 0,\n      "secretData": "",\n      "temporary": false,\n      "type": "",\n      "userLabel": "",\n      "value": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "email": "",\n  "emailVerified": false,\n  "enabled": false,\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "federationLink": "",\n  "firstName": "",\n  "groups": [],\n  "id": "",\n  "lastName": "",\n  "notBefore": 0,\n  "origin": "",\n  "realmRoles": [],\n  "requiredActions": [],\n  "self": "",\n  "serviceAccountClientId": "",\n  "username": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users")
  .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/:realm/users',
  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({
  access: {},
  attributes: {},
  clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
  clientRoles: {},
  createdTimestamp: 0,
  credentials: [
    {
      createdDate: 0,
      credentialData: '',
      id: '',
      priority: 0,
      secretData: '',
      temporary: false,
      type: '',
      userLabel: '',
      value: ''
    }
  ],
  disableableCredentialTypes: [],
  email: '',
  emailVerified: false,
  enabled: false,
  federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
  federationLink: '',
  firstName: '',
  groups: [],
  id: '',
  lastName: '',
  notBefore: 0,
  origin: '',
  realmRoles: [],
  requiredActions: [],
  self: '',
  serviceAccountClientId: '',
  username: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users',
  headers: {'content-type': 'application/json'},
  body: {
    access: {},
    attributes: {},
    clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
    clientRoles: {},
    createdTimestamp: 0,
    credentials: [
      {
        createdDate: 0,
        credentialData: '',
        id: '',
        priority: 0,
        secretData: '',
        temporary: false,
        type: '',
        userLabel: '',
        value: ''
      }
    ],
    disableableCredentialTypes: [],
    email: '',
    emailVerified: false,
    enabled: false,
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    federationLink: '',
    firstName: '',
    groups: [],
    id: '',
    lastName: '',
    notBefore: 0,
    origin: '',
    realmRoles: [],
    requiredActions: [],
    self: '',
    serviceAccountClientId: '',
    username: ''
  },
  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}}/:realm/users');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  access: {},
  attributes: {},
  clientConsents: [
    {
      clientId: '',
      createdDate: 0,
      grantedClientScopes: [],
      lastUpdatedDate: 0
    }
  ],
  clientRoles: {},
  createdTimestamp: 0,
  credentials: [
    {
      createdDate: 0,
      credentialData: '',
      id: '',
      priority: 0,
      secretData: '',
      temporary: false,
      type: '',
      userLabel: '',
      value: ''
    }
  ],
  disableableCredentialTypes: [],
  email: '',
  emailVerified: false,
  enabled: false,
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  federationLink: '',
  firstName: '',
  groups: [],
  id: '',
  lastName: '',
  notBefore: 0,
  origin: '',
  realmRoles: [],
  requiredActions: [],
  self: '',
  serviceAccountClientId: '',
  username: ''
});

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}}/:realm/users',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
    clientRoles: {},
    createdTimestamp: 0,
    credentials: [
      {
        createdDate: 0,
        credentialData: '',
        id: '',
        priority: 0,
        secretData: '',
        temporary: false,
        type: '',
        userLabel: '',
        value: ''
      }
    ],
    disableableCredentialTypes: [],
    email: '',
    emailVerified: false,
    enabled: false,
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    federationLink: '',
    firstName: '',
    groups: [],
    id: '',
    lastName: '',
    notBefore: 0,
    origin: '',
    realmRoles: [],
    requiredActions: [],
    self: '',
    serviceAccountClientId: '',
    username: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}'
};

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 = @{ @"access": @{  },
                              @"attributes": @{  },
                              @"clientConsents": @[ @{ @"clientId": @"", @"createdDate": @0, @"grantedClientScopes": @[  ], @"lastUpdatedDate": @0 } ],
                              @"clientRoles": @{  },
                              @"createdTimestamp": @0,
                              @"credentials": @[ @{ @"createdDate": @0, @"credentialData": @"", @"id": @"", @"priority": @0, @"secretData": @"", @"temporary": @NO, @"type": @"", @"userLabel": @"", @"value": @"" } ],
                              @"disableableCredentialTypes": @[  ],
                              @"email": @"",
                              @"emailVerified": @NO,
                              @"enabled": @NO,
                              @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ],
                              @"federationLink": @"",
                              @"firstName": @"",
                              @"groups": @[  ],
                              @"id": @"",
                              @"lastName": @"",
                              @"notBefore": @0,
                              @"origin": @"",
                              @"realmRoles": @[  ],
                              @"requiredActions": @[  ],
                              @"self": @"",
                              @"serviceAccountClientId": @"",
                              @"username": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users"]
                                                       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}}/:realm/users" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users",
  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([
    'access' => [
        
    ],
    'attributes' => [
        
    ],
    'clientConsents' => [
        [
                'clientId' => '',
                'createdDate' => 0,
                'grantedClientScopes' => [
                                
                ],
                'lastUpdatedDate' => 0
        ]
    ],
    'clientRoles' => [
        
    ],
    'createdTimestamp' => 0,
    'credentials' => [
        [
                'createdDate' => 0,
                'credentialData' => '',
                'id' => '',
                'priority' => 0,
                'secretData' => '',
                'temporary' => null,
                'type' => '',
                'userLabel' => '',
                'value' => ''
        ]
    ],
    'disableableCredentialTypes' => [
        
    ],
    'email' => '',
    'emailVerified' => null,
    'enabled' => null,
    'federatedIdentities' => [
        [
                'identityProvider' => '',
                'userId' => '',
                'userName' => ''
        ]
    ],
    'federationLink' => '',
    'firstName' => '',
    'groups' => [
        
    ],
    'id' => '',
    'lastName' => '',
    'notBefore' => 0,
    'origin' => '',
    'realmRoles' => [
        
    ],
    'requiredActions' => [
        
    ],
    'self' => '',
    'serviceAccountClientId' => '',
    'username' => ''
  ]),
  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}}/:realm/users', [
  'body' => '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'createdDate' => 0,
        'grantedClientScopes' => [
                
        ],
        'lastUpdatedDate' => 0
    ]
  ],
  'clientRoles' => [
    
  ],
  'createdTimestamp' => 0,
  'credentials' => [
    [
        'createdDate' => 0,
        'credentialData' => '',
        'id' => '',
        'priority' => 0,
        'secretData' => '',
        'temporary' => null,
        'type' => '',
        'userLabel' => '',
        'value' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'email' => '',
  'emailVerified' => null,
  'enabled' => null,
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'federationLink' => '',
  'firstName' => '',
  'groups' => [
    
  ],
  'id' => '',
  'lastName' => '',
  'notBefore' => 0,
  'origin' => '',
  'realmRoles' => [
    
  ],
  'requiredActions' => [
    
  ],
  'self' => '',
  'serviceAccountClientId' => '',
  'username' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'createdDate' => 0,
        'grantedClientScopes' => [
                
        ],
        'lastUpdatedDate' => 0
    ]
  ],
  'clientRoles' => [
    
  ],
  'createdTimestamp' => 0,
  'credentials' => [
    [
        'createdDate' => 0,
        'credentialData' => '',
        'id' => '',
        'priority' => 0,
        'secretData' => '',
        'temporary' => null,
        'type' => '',
        'userLabel' => '',
        'value' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'email' => '',
  'emailVerified' => null,
  'enabled' => null,
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'federationLink' => '',
  'firstName' => '',
  'groups' => [
    
  ],
  'id' => '',
  'lastName' => '',
  'notBefore' => 0,
  'origin' => '',
  'realmRoles' => [
    
  ],
  'requiredActions' => [
    
  ],
  'self' => '',
  'serviceAccountClientId' => '',
  'username' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users');
$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}}/:realm/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/:realm/users", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users"

payload = {
    "access": {},
    "attributes": {},
    "clientConsents": [
        {
            "clientId": "",
            "createdDate": 0,
            "grantedClientScopes": [],
            "lastUpdatedDate": 0
        }
    ],
    "clientRoles": {},
    "createdTimestamp": 0,
    "credentials": [
        {
            "createdDate": 0,
            "credentialData": "",
            "id": "",
            "priority": 0,
            "secretData": "",
            "temporary": False,
            "type": "",
            "userLabel": "",
            "value": ""
        }
    ],
    "disableableCredentialTypes": [],
    "email": "",
    "emailVerified": False,
    "enabled": False,
    "federatedIdentities": [
        {
            "identityProvider": "",
            "userId": "",
            "userName": ""
        }
    ],
    "federationLink": "",
    "firstName": "",
    "groups": [],
    "id": "",
    "lastName": "",
    "notBefore": 0,
    "origin": "",
    "realmRoles": [],
    "requiredActions": [],
    "self": "",
    "serviceAccountClientId": "",
    "username": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users"

payload <- "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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}}/:realm/users")

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  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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/:realm/users') do |req|
  req.body = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users";

    let payload = json!({
        "access": json!({}),
        "attributes": json!({}),
        "clientConsents": (
            json!({
                "clientId": "",
                "createdDate": 0,
                "grantedClientScopes": (),
                "lastUpdatedDate": 0
            })
        ),
        "clientRoles": json!({}),
        "createdTimestamp": 0,
        "credentials": (
            json!({
                "createdDate": 0,
                "credentialData": "",
                "id": "",
                "priority": 0,
                "secretData": "",
                "temporary": false,
                "type": "",
                "userLabel": "",
                "value": ""
            })
        ),
        "disableableCredentialTypes": (),
        "email": "",
        "emailVerified": false,
        "enabled": false,
        "federatedIdentities": (
            json!({
                "identityProvider": "",
                "userId": "",
                "userName": ""
            })
        ),
        "federationLink": "",
        "firstName": "",
        "groups": (),
        "id": "",
        "lastName": "",
        "notBefore": 0,
        "origin": "",
        "realmRoles": (),
        "requiredActions": (),
        "self": "",
        "serviceAccountClientId": "",
        "username": ""
    });

    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}}/:realm/users \
  --header 'content-type: application/json' \
  --data '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}'
echo '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}' |  \
  http POST {{baseUrl}}/:realm/users \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "access": {},\n  "attributes": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "createdDate": 0,\n      "grantedClientScopes": [],\n      "lastUpdatedDate": 0\n    }\n  ],\n  "clientRoles": {},\n  "createdTimestamp": 0,\n  "credentials": [\n    {\n      "createdDate": 0,\n      "credentialData": "",\n      "id": "",\n      "priority": 0,\n      "secretData": "",\n      "temporary": false,\n      "type": "",\n      "userLabel": "",\n      "value": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "email": "",\n  "emailVerified": false,\n  "enabled": false,\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "federationLink": "",\n  "firstName": "",\n  "groups": [],\n  "id": "",\n  "lastName": "",\n  "notBefore": 0,\n  "origin": "",\n  "realmRoles": [],\n  "requiredActions": [],\n  "self": "",\n  "serviceAccountClientId": "",\n  "username": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/users
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access": [],
  "attributes": [],
  "clientConsents": [
    [
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    ]
  ],
  "clientRoles": [],
  "createdTimestamp": 0,
  "credentials": [
    [
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    ]
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    [
      "identityProvider": "",
      "userId": "",
      "userName": ""
    ]
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Delete the user
{{baseUrl}}/:realm/users/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/users/:id")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id"

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:realm/users/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/users/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id"))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/users/:id")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:realm/users/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/users/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/users/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/users/:id'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/users/:id');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'DELETE', url: '{{baseUrl}}/:realm/users/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:realm/users/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/users/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:realm/users/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/:realm/users/:id
http DELETE {{baseUrl}}/:realm/users/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/users/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Disable all credentials for a user of a specific type
{{baseUrl}}/:realm/users/:id/disable-credential-types
BODY json

[
  {}
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/disable-credential-types");

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  {}\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users/:id/disable-credential-types" {:content-type :json
                                                                                     :form-params [{}]})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/disable-credential-types"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {}\n]"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/disable-credential-types"),
    Content = new StringContent("[\n  {}\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/disable-credential-types");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {}\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/disable-credential-types"

	payload := strings.NewReader("[\n  {}\n]")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users/:id/disable-credential-types HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 8

[
  {}
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users/:id/disable-credential-types")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {}\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/disable-credential-types"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("[\n  {}\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {}\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/disable-credential-types")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users/:id/disable-credential-types")
  .header("content-type", "application/json")
  .body("[\n  {}\n]")
  .asString();
const data = JSON.stringify([
  {}
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users/:id/disable-credential-types');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/disable-credential-types',
  headers: {'content-type': 'application/json'},
  data: [{}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/disable-credential-types';
const options = {method: 'PUT', headers: {'content-type': 'application/json'}, body: '[{}]'};

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}}/:realm/users/:id/disable-credential-types',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {}\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {}\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/disable-credential-types")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/disable-credential-types',
  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([{}]));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/disable-credential-types',
  headers: {'content-type': 'application/json'},
  body: [{}],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users/:id/disable-credential-types');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {}
]);

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/disable-credential-types',
  headers: {'content-type': 'application/json'},
  data: [{}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/disable-credential-types';
const options = {method: 'PUT', headers: {'content-type': 'application/json'}, body: '[{}]'};

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 = @[ @{  } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/disable-credential-types"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id/disable-credential-types" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {}\n]" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/disable-credential-types",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users/:id/disable-credential-types', [
  'body' => '[
  {}
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/disable-credential-types');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/disable-credential-types');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/disable-credential-types' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
  {}
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/disable-credential-types' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
  {}
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {}\n]"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/users/:id/disable-credential-types", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/disable-credential-types"

payload = [{}]
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/disable-credential-types"

payload <- "[\n  {}\n]"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/disable-credential-types")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {}\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/users/:id/disable-credential-types') do |req|
  req.body = "[\n  {}\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/disable-credential-types";

    let payload = (json!({}));

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users/:id/disable-credential-types \
  --header 'content-type: application/json' \
  --data '[
  {}
]'
echo '[
  {}
]' |  \
  http PUT {{baseUrl}}/:realm/users/:id/disable-credential-types \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '[\n  {}\n]' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/disable-credential-types
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [[]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/disable-credential-types")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get consents granted by the user
{{baseUrl}}/:realm/users/:id/consents
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/consents");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/consents")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/consents"

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}}/:realm/users/:id/consents"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/consents");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/consents"

	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/:realm/users/:id/consents HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/consents")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/consents"))
    .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}}/:realm/users/:id/consents")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/consents")
  .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}}/:realm/users/:id/consents');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/:id/consents'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/consents';
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}}/:realm/users/:id/consents',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/consents")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/consents',
  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}}/:realm/users/:id/consents'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/consents');

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}}/:realm/users/:id/consents'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/consents';
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}}/:realm/users/:id/consents"]
                                                       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}}/:realm/users/:id/consents" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/consents",
  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}}/:realm/users/:id/consents');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/consents');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/consents');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/consents' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/consents' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/consents")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/consents"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/consents"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/consents")

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/:realm/users/:id/consents') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/consents";

    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}}/:realm/users/:id/consents
http GET {{baseUrl}}/:realm/users/:id/consents
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/consents
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/consents")! 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 Get offline sessions associated with the user and client
{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId"

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}}/:realm/users/:id/offline-sessions/:clientId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId"

	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/:realm/users/:id/offline-sessions/:clientId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId"))
    .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}}/:realm/users/:id/offline-sessions/:clientId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId")
  .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}}/:realm/users/:id/offline-sessions/:clientId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId';
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}}/:realm/users/:id/offline-sessions/:clientId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/offline-sessions/:clientId',
  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}}/:realm/users/:id/offline-sessions/:clientId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId');

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}}/:realm/users/:id/offline-sessions/:clientId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId';
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}}/:realm/users/:id/offline-sessions/:clientId"]
                                                       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}}/:realm/users/:id/offline-sessions/:clientId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId",
  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}}/:realm/users/:id/offline-sessions/:clientId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/offline-sessions/:clientId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId")

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/:realm/users/:id/offline-sessions/:clientId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId";

    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}}/:realm/users/:id/offline-sessions/:clientId
http GET {{baseUrl}}/:realm/users/:id/offline-sessions/:clientId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/offline-sessions/:clientId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/offline-sessions/:clientId")! 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 Get representation of the user
{{baseUrl}}/:realm/users/:id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id")
require "http/client"

url = "{{baseUrl}}/:realm/users/: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}}/:realm/users/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/: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/:realm/users/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/: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}}/:realm/users/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/: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}}/:realm/users/:id');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/: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}}/:realm/users/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/: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}}/:realm/users/: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}}/:realm/users/: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}}/:realm/users/:id'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/: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}}/:realm/users/: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}}/:realm/users/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/: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}}/:realm/users/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/: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/:realm/users/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/: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}}/:realm/users/:id
http GET {{baseUrl}}/:realm/users/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/: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 Get sessions associated with the user
{{baseUrl}}/:realm/users/:id/sessions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/sessions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/sessions")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/sessions"

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}}/:realm/users/:id/sessions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/sessions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/sessions"

	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/:realm/users/:id/sessions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/sessions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/sessions"))
    .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}}/:realm/users/:id/sessions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/sessions")
  .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}}/:realm/users/:id/sessions');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/:id/sessions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/sessions';
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}}/:realm/users/:id/sessions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/sessions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/sessions',
  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}}/:realm/users/:id/sessions'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/sessions');

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}}/:realm/users/:id/sessions'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/sessions';
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}}/:realm/users/:id/sessions"]
                                                       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}}/:realm/users/:id/sessions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/sessions",
  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}}/:realm/users/:id/sessions');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/sessions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/sessions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/sessions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/sessions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/sessions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/sessions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/sessions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/sessions")

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/:realm/users/:id/sessions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/sessions";

    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}}/:realm/users/:id/sessions
http GET {{baseUrl}}/:realm/users/:id/sessions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/sessions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/sessions")! 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 Get social logins associated with the user
{{baseUrl}}/:realm/users/:id/federated-identity
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/federated-identity");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/federated-identity")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/federated-identity"

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}}/:realm/users/:id/federated-identity"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/federated-identity");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/federated-identity"

	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/:realm/users/:id/federated-identity HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/federated-identity")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/federated-identity"))
    .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}}/:realm/users/:id/federated-identity")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/federated-identity")
  .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}}/:realm/users/:id/federated-identity');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/federated-identity'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/federated-identity';
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}}/:realm/users/:id/federated-identity',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/federated-identity")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/federated-identity',
  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}}/:realm/users/:id/federated-identity'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/federated-identity');

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}}/:realm/users/:id/federated-identity'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/federated-identity';
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}}/:realm/users/:id/federated-identity"]
                                                       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}}/:realm/users/:id/federated-identity" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/federated-identity",
  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}}/:realm/users/:id/federated-identity');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/federated-identity');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/federated-identity');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/federated-identity' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/federated-identity' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/federated-identity")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/federated-identity"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/federated-identity"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/federated-identity")

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/:realm/users/:id/federated-identity') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/federated-identity";

    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}}/:realm/users/:id/federated-identity
http GET {{baseUrl}}/:realm/users/:id/federated-identity
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/federated-identity
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/federated-identity")! 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 Get users Returns a list of users, filtered according to query parameters (GET)
{{baseUrl}}/:realm/users
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users")
require "http/client"

url = "{{baseUrl}}/:realm/users"

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}}/:realm/users"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users"

	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/:realm/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users"))
    .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}}/:realm/users")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users")
  .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}}/:realm/users');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users';
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}}/:realm/users',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users',
  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}}/:realm/users'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users');

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}}/:realm/users'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users';
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}}/:realm/users"]
                                                       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}}/:realm/users" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users",
  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}}/:realm/users');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users")

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/:realm/users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users";

    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}}/:realm/users
http GET {{baseUrl}}/:realm/users
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users")! 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 Impersonate the user
{{baseUrl}}/:realm/users/:id/impersonation
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/impersonation");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users/:id/impersonation")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/impersonation"

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}}/:realm/users/:id/impersonation"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/impersonation");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/impersonation"

	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/:realm/users/:id/impersonation HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users/:id/impersonation")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/impersonation"))
    .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}}/:realm/users/:id/impersonation")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users/:id/impersonation")
  .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}}/:realm/users/:id/impersonation');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/impersonation'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/impersonation';
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}}/:realm/users/:id/impersonation',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/impersonation")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/impersonation',
  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}}/:realm/users/:id/impersonation'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/users/:id/impersonation');

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}}/:realm/users/:id/impersonation'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/impersonation';
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}}/:realm/users/:id/impersonation"]
                                                       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}}/:realm/users/:id/impersonation" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/impersonation",
  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}}/:realm/users/:id/impersonation');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/impersonation');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/impersonation');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/impersonation' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/impersonation' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/users/:id/impersonation")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/impersonation"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/impersonation"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/impersonation")

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/:realm/users/:id/impersonation') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/impersonation";

    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}}/:realm/users/:id/impersonation
http POST {{baseUrl}}/:realm/users/:id/impersonation
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/impersonation
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/impersonation")! 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 Move a credential to a first position in the credentials list of the user
{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst"

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}}/:realm/users/:id/credentials/:credentialId/moveToFirst"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst"

	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/:realm/users/:id/credentials/:credentialId/moveToFirst HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst"))
    .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}}/:realm/users/:id/credentials/:credentialId/moveToFirst")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst")
  .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}}/:realm/users/:id/credentials/:credentialId/moveToFirst');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst';
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}}/:realm/users/:id/credentials/:credentialId/moveToFirst',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/credentials/:credentialId/moveToFirst',
  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}}/:realm/users/:id/credentials/:credentialId/moveToFirst'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst');

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}}/:realm/users/:id/credentials/:credentialId/moveToFirst'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst';
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}}/:realm/users/:id/credentials/:credentialId/moveToFirst"]
                                                       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}}/:realm/users/:id/credentials/:credentialId/moveToFirst" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst",
  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}}/:realm/users/:id/credentials/:credentialId/moveToFirst');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/users/:id/credentials/:credentialId/moveToFirst")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst")

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/:realm/users/:id/credentials/:credentialId/moveToFirst') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst";

    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}}/:realm/users/:id/credentials/:credentialId/moveToFirst
http POST {{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveToFirst")! 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 Move a credential to a position behind another credential
{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"

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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"

	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/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"))
    .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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
  .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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId';
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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId',
  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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');

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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId';
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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"]
                                                       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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId",
  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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")

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/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId";

    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}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
http POST {{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")! 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()
DELETE Remove a credential for a user
{{baseUrl}}/:realm/users/:id/credentials/:credentialId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/credentials/:credentialId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/users/:id/credentials/:credentialId")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId"

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}}/:realm/users/:id/credentials/:credentialId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/credentials/:credentialId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/credentials/:credentialId"

	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/:realm/users/:id/credentials/:credentialId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/users/:id/credentials/:credentialId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/credentials/:credentialId"))
    .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}}/:realm/users/:id/credentials/:credentialId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/users/:id/credentials/:credentialId")
  .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}}/:realm/users/:id/credentials/:credentialId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/credentials/:credentialId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId';
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}}/:realm/users/:id/credentials/:credentialId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/credentials/:credentialId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/credentials/:credentialId',
  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}}/:realm/users/:id/credentials/:credentialId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/users/:id/credentials/:credentialId');

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}}/:realm/users/:id/credentials/:credentialId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId';
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}}/:realm/users/:id/credentials/:credentialId"]
                                                       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}}/:realm/users/:id/credentials/:credentialId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/credentials/:credentialId",
  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}}/:realm/users/:id/credentials/:credentialId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/users/:id/credentials/:credentialId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/credentials/:credentialId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/credentials/:credentialId")

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/:realm/users/:id/credentials/:credentialId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId";

    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}}/:realm/users/:id/credentials/:credentialId
http DELETE {{baseUrl}}/:realm/users/:id/credentials/:credentialId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/credentials/:credentialId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/credentials/:credentialId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Remove a social login provider from user
{{baseUrl}}/:realm/users/:id/federated-identity/:provider
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/federated-identity/:provider");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"

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}}/:realm/users/:id/federated-identity/:provider"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/federated-identity/:provider");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"

	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/:realm/users/:id/federated-identity/:provider HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/federated-identity/:provider"))
    .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}}/:realm/users/:id/federated-identity/:provider")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
  .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}}/:realm/users/:id/federated-identity/:provider');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/federated-identity/:provider'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/federated-identity/:provider';
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}}/:realm/users/:id/federated-identity/:provider',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/federated-identity/:provider")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/federated-identity/:provider',
  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}}/:realm/users/:id/federated-identity/:provider'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/users/:id/federated-identity/:provider');

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}}/:realm/users/:id/federated-identity/:provider'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/federated-identity/:provider';
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}}/:realm/users/:id/federated-identity/:provider"]
                                                       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}}/:realm/users/:id/federated-identity/:provider" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/federated-identity/:provider",
  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}}/:realm/users/:id/federated-identity/:provider');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/federated-identity/:provider');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/federated-identity/:provider');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/federated-identity/:provider' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/federated-identity/:provider' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/users/:id/federated-identity/:provider")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/federated-identity/:provider"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/federated-identity/:provider")

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/:realm/users/:id/federated-identity/:provider') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/federated-identity/:provider";

    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}}/:realm/users/:id/federated-identity/:provider
http DELETE {{baseUrl}}/:realm/users/:id/federated-identity/:provider
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/federated-identity/:provider
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/federated-identity/:provider")! 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 Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user.
{{baseUrl}}/:realm/users/:id/logout
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/logout");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/:realm/users/:id/logout")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/logout"

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}}/:realm/users/:id/logout"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/logout");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/logout"

	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/:realm/users/:id/logout HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/:realm/users/:id/logout")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/logout"))
    .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}}/:realm/users/:id/logout")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/:realm/users/:id/logout")
  .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}}/:realm/users/:id/logout');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/:realm/users/:id/logout'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/logout';
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}}/:realm/users/:id/logout',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/logout")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/logout',
  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}}/:realm/users/:id/logout'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/:realm/users/:id/logout');

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}}/:realm/users/:id/logout'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/logout';
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}}/:realm/users/:id/logout"]
                                                       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}}/:realm/users/:id/logout" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/logout",
  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}}/:realm/users/:id/logout');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/logout');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/logout');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/logout' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/logout' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/:realm/users/:id/logout")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/logout"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/logout"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/logout")

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/:realm/users/:id/logout') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/logout";

    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}}/:realm/users/:id/logout
http POST {{baseUrl}}/:realm/users/:id/logout
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/logout
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/logout")! 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 Return credential types, which are provided by the user storage where user is stored.
{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types"

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}}/:realm/users/:id/configured-user-storage-credential-types"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types"

	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/:realm/users/:id/configured-user-storage-credential-types HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types"))
    .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}}/:realm/users/:id/configured-user-storage-credential-types")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types")
  .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}}/:realm/users/:id/configured-user-storage-credential-types');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types';
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}}/:realm/users/:id/configured-user-storage-credential-types',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/configured-user-storage-credential-types',
  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}}/:realm/users/:id/configured-user-storage-credential-types'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types');

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}}/:realm/users/:id/configured-user-storage-credential-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types';
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}}/:realm/users/:id/configured-user-storage-credential-types"]
                                                       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}}/:realm/users/:id/configured-user-storage-credential-types" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types",
  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}}/:realm/users/:id/configured-user-storage-credential-types');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/configured-user-storage-credential-types")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types")

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/:realm/users/:id/configured-user-storage-credential-types') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types";

    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}}/:realm/users/:id/configured-user-storage-credential-types
http GET {{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/configured-user-storage-credential-types")! 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 number of users that match the given criteria.
{{baseUrl}}/:realm/users/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/count")
require "http/client"

url = "{{baseUrl}}/:realm/users/count"

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}}/:realm/users/count"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/count"

	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/:realm/users/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/count"))
    .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}}/:realm/users/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/count")
  .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}}/:realm/users/count');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/count'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/count';
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}}/:realm/users/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/count")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/count',
  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}}/:realm/users/count'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/count');

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}}/:realm/users/count'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/count';
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}}/:realm/users/count"]
                                                       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}}/:realm/users/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/count",
  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}}/:realm/users/count');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/count")

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/:realm/users/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/count";

    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}}/:realm/users/count
http GET {{baseUrl}}/:realm/users/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/count")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/consents/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/users/:id/consents/:client")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/consents/:client"

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}}/:realm/users/:id/consents/:client"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/consents/:client");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/consents/:client"

	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/:realm/users/:id/consents/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/users/:id/consents/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/consents/:client"))
    .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}}/:realm/users/:id/consents/:client")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/users/:id/consents/:client")
  .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}}/:realm/users/:id/consents/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/consents/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/consents/:client';
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}}/:realm/users/:id/consents/:client',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/consents/:client")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/consents/:client',
  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}}/:realm/users/:id/consents/:client'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/users/:id/consents/:client');

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}}/:realm/users/:id/consents/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/consents/:client';
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}}/:realm/users/:id/consents/:client"]
                                                       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}}/:realm/users/:id/consents/:client" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/consents/:client",
  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}}/:realm/users/:id/consents/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/consents/:client');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/consents/:client');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/consents/:client' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/consents/:client' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/users/:id/consents/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/consents/:client"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/consents/:client"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/consents/:client")

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/:realm/users/:id/consents/:client') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/consents/:client";

    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}}/:realm/users/:id/consents/:client
http DELETE {{baseUrl}}/:realm/users/:id/consents/:client
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/consents/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/consents/:client")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/execute-actions-email");

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  {}\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users/:id/execute-actions-email" {:content-type :json
                                                                                  :form-params [{}]})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/execute-actions-email"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {}\n]"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/execute-actions-email"),
    Content = new StringContent("[\n  {}\n]")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/execute-actions-email");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {}\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/execute-actions-email"

	payload := strings.NewReader("[\n  {}\n]")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users/:id/execute-actions-email HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 8

[
  {}
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users/:id/execute-actions-email")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {}\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/execute-actions-email"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("[\n  {}\n]"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "[\n  {}\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/execute-actions-email")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users/:id/execute-actions-email")
  .header("content-type", "application/json")
  .body("[\n  {}\n]")
  .asString();
const data = JSON.stringify([
  {}
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users/:id/execute-actions-email');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/execute-actions-email',
  headers: {'content-type': 'application/json'},
  data: [{}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/execute-actions-email';
const options = {method: 'PUT', headers: {'content-type': 'application/json'}, body: '[{}]'};

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}}/:realm/users/:id/execute-actions-email',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {}\n]'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "[\n  {}\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/execute-actions-email")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/execute-actions-email',
  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([{}]));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/execute-actions-email',
  headers: {'content-type': 'application/json'},
  body: [{}],
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users/:id/execute-actions-email');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {}
]);

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/execute-actions-email',
  headers: {'content-type': 'application/json'},
  data: [{}]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/execute-actions-email';
const options = {method: 'PUT', headers: {'content-type': 'application/json'}, body: '[{}]'};

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 = @[ @{  } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/execute-actions-email"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id/execute-actions-email" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {}\n]" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/execute-actions-email",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users/:id/execute-actions-email', [
  'body' => '[
  {}
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/execute-actions-email');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/execute-actions-email');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/execute-actions-email' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
  {}
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/execute-actions-email' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
  {}
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {}\n]"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/users/:id/execute-actions-email", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/execute-actions-email"

payload = [{}]
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/execute-actions-email"

payload <- "[\n  {}\n]"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/execute-actions-email")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "[\n  {}\n]"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/users/:id/execute-actions-email') do |req|
  req.body = "[\n  {}\n]"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/execute-actions-email";

    let payload = (json!({}));

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users/:id/execute-actions-email \
  --header 'content-type: application/json' \
  --data '[
  {}
]'
echo '[
  {}
]' |  \
  http PUT {{baseUrl}}/:realm/users/:id/execute-actions-email \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '[\n  {}\n]' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/execute-actions-email
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [[]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/execute-actions-email")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/send-verify-email");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users/:id/send-verify-email")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/send-verify-email"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/send-verify-email"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/send-verify-email");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/send-verify-email"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users/:id/send-verify-email HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users/:id/send-verify-email")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/send-verify-email"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/send-verify-email")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users/:id/send-verify-email")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users/:id/send-verify-email');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/send-verify-email'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/send-verify-email';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/users/:id/send-verify-email',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/send-verify-email")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/send-verify-email',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/send-verify-email'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users/:id/send-verify-email');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/send-verify-email'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/send-verify-email';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/send-verify-email"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id/send-verify-email" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/send-verify-email",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users/:id/send-verify-email');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/send-verify-email');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/send-verify-email');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/send-verify-email' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/send-verify-email' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/users/:id/send-verify-email")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/send-verify-email"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/send-verify-email"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/send-verify-email")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/users/:id/send-verify-email') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/send-verify-email";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users/:id/send-verify-email
http PUT {{baseUrl}}/:realm/users/:id/send-verify-email
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/send-verify-email
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/send-verify-email")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Set up a new password for the user.
{{baseUrl}}/:realm/users/:id/reset-password
BODY json

{
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/reset-password");

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  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users/:id/reset-password" {:content-type :json
                                                                           :form-params {:createdDate 0
                                                                                         :credentialData ""
                                                                                         :id ""
                                                                                         :priority 0
                                                                                         :secretData ""
                                                                                         :temporary false
                                                                                         :type ""
                                                                                         :userLabel ""
                                                                                         :value ""}})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/reset-password"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/reset-password"),
    Content = new StringContent("{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\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}}/:realm/users/:id/reset-password");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/reset-password"

	payload := strings.NewReader("{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users/:id/reset-password HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 165

{
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users/:id/reset-password")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/reset-password"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\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  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/reset-password")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users/:id/reset-password")
  .header("content-type", "application/json")
  .body("{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  createdDate: 0,
  credentialData: '',
  id: '',
  priority: 0,
  secretData: '',
  temporary: false,
  type: '',
  userLabel: '',
  value: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users/:id/reset-password');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/reset-password',
  headers: {'content-type': 'application/json'},
  data: {
    createdDate: 0,
    credentialData: '',
    id: '',
    priority: 0,
    secretData: '',
    temporary: false,
    type: '',
    userLabel: '',
    value: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/reset-password';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}'
};

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}}/:realm/users/:id/reset-password',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "createdDate": 0,\n  "credentialData": "",\n  "id": "",\n  "priority": 0,\n  "secretData": "",\n  "temporary": false,\n  "type": "",\n  "userLabel": "",\n  "value": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/reset-password")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/reset-password',
  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({
  createdDate: 0,
  credentialData: '',
  id: '',
  priority: 0,
  secretData: '',
  temporary: false,
  type: '',
  userLabel: '',
  value: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/reset-password',
  headers: {'content-type': 'application/json'},
  body: {
    createdDate: 0,
    credentialData: '',
    id: '',
    priority: 0,
    secretData: '',
    temporary: false,
    type: '',
    userLabel: '',
    value: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users/:id/reset-password');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  createdDate: 0,
  credentialData: '',
  id: '',
  priority: 0,
  secretData: '',
  temporary: false,
  type: '',
  userLabel: '',
  value: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/reset-password',
  headers: {'content-type': 'application/json'},
  data: {
    createdDate: 0,
    credentialData: '',
    id: '',
    priority: 0,
    secretData: '',
    temporary: false,
    type: '',
    userLabel: '',
    value: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/reset-password';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}'
};

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 = @{ @"createdDate": @0,
                              @"credentialData": @"",
                              @"id": @"",
                              @"priority": @0,
                              @"secretData": @"",
                              @"temporary": @NO,
                              @"type": @"",
                              @"userLabel": @"",
                              @"value": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/reset-password"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id/reset-password" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/reset-password",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'createdDate' => 0,
    'credentialData' => '',
    'id' => '',
    'priority' => 0,
    'secretData' => '',
    'temporary' => null,
    'type' => '',
    'userLabel' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users/:id/reset-password', [
  'body' => '{
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/reset-password');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'createdDate' => 0,
  'credentialData' => '',
  'id' => '',
  'priority' => 0,
  'secretData' => '',
  'temporary' => null,
  'type' => '',
  'userLabel' => '',
  'value' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'createdDate' => 0,
  'credentialData' => '',
  'id' => '',
  'priority' => 0,
  'secretData' => '',
  'temporary' => null,
  'type' => '',
  'userLabel' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id/reset-password');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/reset-password' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/reset-password' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/users/:id/reset-password", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/reset-password"

payload = {
    "createdDate": 0,
    "credentialData": "",
    "id": "",
    "priority": 0,
    "secretData": "",
    "temporary": False,
    "type": "",
    "userLabel": "",
    "value": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/reset-password"

payload <- "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/reset-password")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/users/:id/reset-password') do |req|
  req.body = "{\n  \"createdDate\": 0,\n  \"credentialData\": \"\",\n  \"id\": \"\",\n  \"priority\": 0,\n  \"secretData\": \"\",\n  \"temporary\": false,\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"value\": \"\"\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}}/:realm/users/:id/reset-password";

    let payload = json!({
        "createdDate": 0,
        "credentialData": "",
        "id": "",
        "priority": 0,
        "secretData": "",
        "temporary": false,
        "type": "",
        "userLabel": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users/:id/reset-password \
  --header 'content-type: application/json' \
  --data '{
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
}'
echo '{
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
}' |  \
  http PUT {{baseUrl}}/:realm/users/:id/reset-password \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "createdDate": 0,\n  "credentialData": "",\n  "id": "",\n  "priority": 0,\n  "secretData": "",\n  "temporary": false,\n  "type": "",\n  "userLabel": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/reset-password
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "createdDate": 0,
  "credentialData": "",
  "id": "",
  "priority": 0,
  "secretData": "",
  "temporary": false,
  "type": "",
  "userLabel": "",
  "value": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/reset-password")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update a credential label for a user
{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users/:id/credentials/:credentialId/userLabel HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/credentials/:credentialId/userLabel',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/users/:id/credentials/:credentialId/userLabel")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/users/:id/credentials/:credentialId/userLabel') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel
http PUT {{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/credentials/:credentialId/userLabel")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Update the user
{{baseUrl}}/:realm/users/:id
BODY json

{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users/:id" {:content-type :json
                                                            :form-params {:access {}
                                                                          :attributes {}
                                                                          :clientConsents [{:clientId ""
                                                                                            :createdDate 0
                                                                                            :grantedClientScopes []
                                                                                            :lastUpdatedDate 0}]
                                                                          :clientRoles {}
                                                                          :createdTimestamp 0
                                                                          :credentials [{:createdDate 0
                                                                                         :credentialData ""
                                                                                         :id ""
                                                                                         :priority 0
                                                                                         :secretData ""
                                                                                         :temporary false
                                                                                         :type ""
                                                                                         :userLabel ""
                                                                                         :value ""}]
                                                                          :disableableCredentialTypes []
                                                                          :email ""
                                                                          :emailVerified false
                                                                          :enabled false
                                                                          :federatedIdentities [{:identityProvider ""
                                                                                                 :userId ""
                                                                                                 :userName ""}]
                                                                          :federationLink ""
                                                                          :firstName ""
                                                                          :groups []
                                                                          :id ""
                                                                          :lastName ""
                                                                          :notBefore 0
                                                                          :origin ""
                                                                          :realmRoles []
                                                                          :requiredActions []
                                                                          :self ""
                                                                          :serviceAccountClientId ""
                                                                          :username ""}})
require "http/client"

url = "{{baseUrl}}/:realm/users/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id"),
    Content = new StringContent("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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}}/:realm/users/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id"

	payload := strings.NewReader("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 907

{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users/:id")
  .header("content-type", "application/json")
  .body("{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  access: {},
  attributes: {},
  clientConsents: [
    {
      clientId: '',
      createdDate: 0,
      grantedClientScopes: [],
      lastUpdatedDate: 0
    }
  ],
  clientRoles: {},
  createdTimestamp: 0,
  credentials: [
    {
      createdDate: 0,
      credentialData: '',
      id: '',
      priority: 0,
      secretData: '',
      temporary: false,
      type: '',
      userLabel: '',
      value: ''
    }
  ],
  disableableCredentialTypes: [],
  email: '',
  emailVerified: false,
  enabled: false,
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  federationLink: '',
  firstName: '',
  groups: [],
  id: '',
  lastName: '',
  notBefore: 0,
  origin: '',
  realmRoles: [],
  requiredActions: [],
  self: '',
  serviceAccountClientId: '',
  username: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
    clientRoles: {},
    createdTimestamp: 0,
    credentials: [
      {
        createdDate: 0,
        credentialData: '',
        id: '',
        priority: 0,
        secretData: '',
        temporary: false,
        type: '',
        userLabel: '',
        value: ''
      }
    ],
    disableableCredentialTypes: [],
    email: '',
    emailVerified: false,
    enabled: false,
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    federationLink: '',
    firstName: '',
    groups: [],
    id: '',
    lastName: '',
    notBefore: 0,
    origin: '',
    realmRoles: [],
    requiredActions: [],
    self: '',
    serviceAccountClientId: '',
    username: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}'
};

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}}/:realm/users/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "access": {},\n  "attributes": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "createdDate": 0,\n      "grantedClientScopes": [],\n      "lastUpdatedDate": 0\n    }\n  ],\n  "clientRoles": {},\n  "createdTimestamp": 0,\n  "credentials": [\n    {\n      "createdDate": 0,\n      "credentialData": "",\n      "id": "",\n      "priority": 0,\n      "secretData": "",\n      "temporary": false,\n      "type": "",\n      "userLabel": "",\n      "value": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "email": "",\n  "emailVerified": false,\n  "enabled": false,\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "federationLink": "",\n  "firstName": "",\n  "groups": [],\n  "id": "",\n  "lastName": "",\n  "notBefore": 0,\n  "origin": "",\n  "realmRoles": [],\n  "requiredActions": [],\n  "self": "",\n  "serviceAccountClientId": "",\n  "username": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  access: {},
  attributes: {},
  clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
  clientRoles: {},
  createdTimestamp: 0,
  credentials: [
    {
      createdDate: 0,
      credentialData: '',
      id: '',
      priority: 0,
      secretData: '',
      temporary: false,
      type: '',
      userLabel: '',
      value: ''
    }
  ],
  disableableCredentialTypes: [],
  email: '',
  emailVerified: false,
  enabled: false,
  federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
  federationLink: '',
  firstName: '',
  groups: [],
  id: '',
  lastName: '',
  notBefore: 0,
  origin: '',
  realmRoles: [],
  requiredActions: [],
  self: '',
  serviceAccountClientId: '',
  username: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id',
  headers: {'content-type': 'application/json'},
  body: {
    access: {},
    attributes: {},
    clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
    clientRoles: {},
    createdTimestamp: 0,
    credentials: [
      {
        createdDate: 0,
        credentialData: '',
        id: '',
        priority: 0,
        secretData: '',
        temporary: false,
        type: '',
        userLabel: '',
        value: ''
      }
    ],
    disableableCredentialTypes: [],
    email: '',
    emailVerified: false,
    enabled: false,
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    federationLink: '',
    firstName: '',
    groups: [],
    id: '',
    lastName: '',
    notBefore: 0,
    origin: '',
    realmRoles: [],
    requiredActions: [],
    self: '',
    serviceAccountClientId: '',
    username: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  access: {},
  attributes: {},
  clientConsents: [
    {
      clientId: '',
      createdDate: 0,
      grantedClientScopes: [],
      lastUpdatedDate: 0
    }
  ],
  clientRoles: {},
  createdTimestamp: 0,
  credentials: [
    {
      createdDate: 0,
      credentialData: '',
      id: '',
      priority: 0,
      secretData: '',
      temporary: false,
      type: '',
      userLabel: '',
      value: ''
    }
  ],
  disableableCredentialTypes: [],
  email: '',
  emailVerified: false,
  enabled: false,
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  federationLink: '',
  firstName: '',
  groups: [],
  id: '',
  lastName: '',
  notBefore: 0,
  origin: '',
  realmRoles: [],
  requiredActions: [],
  self: '',
  serviceAccountClientId: '',
  username: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id',
  headers: {'content-type': 'application/json'},
  data: {
    access: {},
    attributes: {},
    clientConsents: [{clientId: '', createdDate: 0, grantedClientScopes: [], lastUpdatedDate: 0}],
    clientRoles: {},
    createdTimestamp: 0,
    credentials: [
      {
        createdDate: 0,
        credentialData: '',
        id: '',
        priority: 0,
        secretData: '',
        temporary: false,
        type: '',
        userLabel: '',
        value: ''
      }
    ],
    disableableCredentialTypes: [],
    email: '',
    emailVerified: false,
    enabled: false,
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    federationLink: '',
    firstName: '',
    groups: [],
    id: '',
    lastName: '',
    notBefore: 0,
    origin: '',
    realmRoles: [],
    requiredActions: [],
    self: '',
    serviceAccountClientId: '',
    username: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"access":{},"attributes":{},"clientConsents":[{"clientId":"","createdDate":0,"grantedClientScopes":[],"lastUpdatedDate":0}],"clientRoles":{},"createdTimestamp":0,"credentials":[{"createdDate":0,"credentialData":"","id":"","priority":0,"secretData":"","temporary":false,"type":"","userLabel":"","value":""}],"disableableCredentialTypes":[],"email":"","emailVerified":false,"enabled":false,"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"federationLink":"","firstName":"","groups":[],"id":"","lastName":"","notBefore":0,"origin":"","realmRoles":[],"requiredActions":[],"self":"","serviceAccountClientId":"","username":""}'
};

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 = @{ @"access": @{  },
                              @"attributes": @{  },
                              @"clientConsents": @[ @{ @"clientId": @"", @"createdDate": @0, @"grantedClientScopes": @[  ], @"lastUpdatedDate": @0 } ],
                              @"clientRoles": @{  },
                              @"createdTimestamp": @0,
                              @"credentials": @[ @{ @"createdDate": @0, @"credentialData": @"", @"id": @"", @"priority": @0, @"secretData": @"", @"temporary": @NO, @"type": @"", @"userLabel": @"", @"value": @"" } ],
                              @"disableableCredentialTypes": @[  ],
                              @"email": @"",
                              @"emailVerified": @NO,
                              @"enabled": @NO,
                              @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ],
                              @"federationLink": @"",
                              @"firstName": @"",
                              @"groups": @[  ],
                              @"id": @"",
                              @"lastName": @"",
                              @"notBefore": @0,
                              @"origin": @"",
                              @"realmRoles": @[  ],
                              @"requiredActions": @[  ],
                              @"self": @"",
                              @"serviceAccountClientId": @"",
                              @"username": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'access' => [
        
    ],
    'attributes' => [
        
    ],
    'clientConsents' => [
        [
                'clientId' => '',
                'createdDate' => 0,
                'grantedClientScopes' => [
                                
                ],
                'lastUpdatedDate' => 0
        ]
    ],
    'clientRoles' => [
        
    ],
    'createdTimestamp' => 0,
    'credentials' => [
        [
                'createdDate' => 0,
                'credentialData' => '',
                'id' => '',
                'priority' => 0,
                'secretData' => '',
                'temporary' => null,
                'type' => '',
                'userLabel' => '',
                'value' => ''
        ]
    ],
    'disableableCredentialTypes' => [
        
    ],
    'email' => '',
    'emailVerified' => null,
    'enabled' => null,
    'federatedIdentities' => [
        [
                'identityProvider' => '',
                'userId' => '',
                'userName' => ''
        ]
    ],
    'federationLink' => '',
    'firstName' => '',
    'groups' => [
        
    ],
    'id' => '',
    'lastName' => '',
    'notBefore' => 0,
    'origin' => '',
    'realmRoles' => [
        
    ],
    'requiredActions' => [
        
    ],
    'self' => '',
    'serviceAccountClientId' => '',
    'username' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users/:id', [
  'body' => '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'createdDate' => 0,
        'grantedClientScopes' => [
                
        ],
        'lastUpdatedDate' => 0
    ]
  ],
  'clientRoles' => [
    
  ],
  'createdTimestamp' => 0,
  'credentials' => [
    [
        'createdDate' => 0,
        'credentialData' => '',
        'id' => '',
        'priority' => 0,
        'secretData' => '',
        'temporary' => null,
        'type' => '',
        'userLabel' => '',
        'value' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'email' => '',
  'emailVerified' => null,
  'enabled' => null,
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'federationLink' => '',
  'firstName' => '',
  'groups' => [
    
  ],
  'id' => '',
  'lastName' => '',
  'notBefore' => 0,
  'origin' => '',
  'realmRoles' => [
    
  ],
  'requiredActions' => [
    
  ],
  'self' => '',
  'serviceAccountClientId' => '',
  'username' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'access' => [
    
  ],
  'attributes' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'createdDate' => 0,
        'grantedClientScopes' => [
                
        ],
        'lastUpdatedDate' => 0
    ]
  ],
  'clientRoles' => [
    
  ],
  'createdTimestamp' => 0,
  'credentials' => [
    [
        'createdDate' => 0,
        'credentialData' => '',
        'id' => '',
        'priority' => 0,
        'secretData' => '',
        'temporary' => null,
        'type' => '',
        'userLabel' => '',
        'value' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'email' => '',
  'emailVerified' => null,
  'enabled' => null,
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'federationLink' => '',
  'firstName' => '',
  'groups' => [
    
  ],
  'id' => '',
  'lastName' => '',
  'notBefore' => 0,
  'origin' => '',
  'realmRoles' => [
    
  ],
  'requiredActions' => [
    
  ],
  'self' => '',
  'serviceAccountClientId' => '',
  'username' => ''
]));
$request->setRequestUrl('{{baseUrl}}/:realm/users/:id');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:realm/users/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id"

payload = {
    "access": {},
    "attributes": {},
    "clientConsents": [
        {
            "clientId": "",
            "createdDate": 0,
            "grantedClientScopes": [],
            "lastUpdatedDate": 0
        }
    ],
    "clientRoles": {},
    "createdTimestamp": 0,
    "credentials": [
        {
            "createdDate": 0,
            "credentialData": "",
            "id": "",
            "priority": 0,
            "secretData": "",
            "temporary": False,
            "type": "",
            "userLabel": "",
            "value": ""
        }
    ],
    "disableableCredentialTypes": [],
    "email": "",
    "emailVerified": False,
    "enabled": False,
    "federatedIdentities": [
        {
            "identityProvider": "",
            "userId": "",
            "userName": ""
        }
    ],
    "federationLink": "",
    "firstName": "",
    "groups": [],
    "id": "",
    "lastName": "",
    "notBefore": 0,
    "origin": "",
    "realmRoles": [],
    "requiredActions": [],
    "self": "",
    "serviceAccountClientId": "",
    "username": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id"

payload <- "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:realm/users/:id') do |req|
  req.body = "{\n  \"access\": {},\n  \"attributes\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"createdDate\": 0,\n      \"grantedClientScopes\": [],\n      \"lastUpdatedDate\": 0\n    }\n  ],\n  \"clientRoles\": {},\n  \"createdTimestamp\": 0,\n  \"credentials\": [\n    {\n      \"createdDate\": 0,\n      \"credentialData\": \"\",\n      \"id\": \"\",\n      \"priority\": 0,\n      \"secretData\": \"\",\n      \"temporary\": false,\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"enabled\": false,\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"federationLink\": \"\",\n  \"firstName\": \"\",\n  \"groups\": [],\n  \"id\": \"\",\n  \"lastName\": \"\",\n  \"notBefore\": 0,\n  \"origin\": \"\",\n  \"realmRoles\": [],\n  \"requiredActions\": [],\n  \"self\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"username\": \"\"\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}}/:realm/users/:id";

    let payload = json!({
        "access": json!({}),
        "attributes": json!({}),
        "clientConsents": (
            json!({
                "clientId": "",
                "createdDate": 0,
                "grantedClientScopes": (),
                "lastUpdatedDate": 0
            })
        ),
        "clientRoles": json!({}),
        "createdTimestamp": 0,
        "credentials": (
            json!({
                "createdDate": 0,
                "credentialData": "",
                "id": "",
                "priority": 0,
                "secretData": "",
                "temporary": false,
                "type": "",
                "userLabel": "",
                "value": ""
            })
        ),
        "disableableCredentialTypes": (),
        "email": "",
        "emailVerified": false,
        "enabled": false,
        "federatedIdentities": (
            json!({
                "identityProvider": "",
                "userId": "",
                "userName": ""
            })
        ),
        "federationLink": "",
        "firstName": "",
        "groups": (),
        "id": "",
        "lastName": "",
        "notBefore": 0,
        "origin": "",
        "realmRoles": (),
        "requiredActions": (),
        "self": "",
        "serviceAccountClientId": "",
        "username": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users/:id \
  --header 'content-type: application/json' \
  --data '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}'
echo '{
  "access": {},
  "attributes": {},
  "clientConsents": [
    {
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    }
  ],
  "clientRoles": {},
  "createdTimestamp": 0,
  "credentials": [
    {
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    }
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
}' |  \
  http PUT {{baseUrl}}/:realm/users/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "access": {},\n  "attributes": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "createdDate": 0,\n      "grantedClientScopes": [],\n      "lastUpdatedDate": 0\n    }\n  ],\n  "clientRoles": {},\n  "createdTimestamp": 0,\n  "credentials": [\n    {\n      "createdDate": 0,\n      "credentialData": "",\n      "id": "",\n      "priority": 0,\n      "secretData": "",\n      "temporary": false,\n      "type": "",\n      "userLabel": "",\n      "value": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "email": "",\n  "emailVerified": false,\n  "enabled": false,\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "federationLink": "",\n  "firstName": "",\n  "groups": [],\n  "id": "",\n  "lastName": "",\n  "notBefore": 0,\n  "origin": "",\n  "realmRoles": [],\n  "requiredActions": [],\n  "self": "",\n  "serviceAccountClientId": "",\n  "username": ""\n}' \
  --output-document \
  - {{baseUrl}}/:realm/users/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "access": [],
  "attributes": [],
  "clientConsents": [
    [
      "clientId": "",
      "createdDate": 0,
      "grantedClientScopes": [],
      "lastUpdatedDate": 0
    ]
  ],
  "clientRoles": [],
  "createdTimestamp": 0,
  "credentials": [
    [
      "createdDate": 0,
      "credentialData": "",
      "id": "",
      "priority": 0,
      "secretData": "",
      "temporary": false,
      "type": "",
      "userLabel": "",
      "value": ""
    ]
  ],
  "disableableCredentialTypes": [],
  "email": "",
  "emailVerified": false,
  "enabled": false,
  "federatedIdentities": [
    [
      "identityProvider": "",
      "userId": "",
      "userName": ""
    ]
  ],
  "federationLink": "",
  "firstName": "",
  "groups": [],
  "id": "",
  "lastName": "",
  "notBefore": 0,
  "origin": "",
  "realmRoles": [],
  "requiredActions": [],
  "self": "",
  "serviceAccountClientId": "",
  "username": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE delete --realm-users--id-groups--groupId
{{baseUrl}}/:realm/users/:id/groups/:groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:realm/users/:id/groups/:groupId")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/groups/:groupId"

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}}/:realm/users/:id/groups/:groupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/groups/:groupId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/groups/:groupId"

	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/:realm/users/:id/groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:realm/users/:id/groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/groups/:groupId"))
    .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}}/:realm/users/:id/groups/:groupId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:realm/users/:id/groups/:groupId")
  .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}}/:realm/users/:id/groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:realm/users/:id/groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/groups/:groupId';
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}}/:realm/users/:id/groups/:groupId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/groups/:groupId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/groups/:groupId',
  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}}/:realm/users/:id/groups/:groupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:realm/users/:id/groups/:groupId');

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}}/:realm/users/:id/groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/groups/:groupId';
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}}/:realm/users/:id/groups/:groupId"]
                                                       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}}/:realm/users/:id/groups/:groupId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/groups/:groupId",
  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}}/:realm/users/:id/groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/groups/:groupId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/groups/:groupId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/groups/:groupId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/groups/:groupId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:realm/users/:id/groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/groups/:groupId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/groups/:groupId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/groups/:groupId")

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/:realm/users/:id/groups/:groupId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/groups/:groupId";

    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}}/:realm/users/:id/groups/:groupId
http DELETE {{baseUrl}}/:realm/users/:id/groups/:groupId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/groups/:groupId")! 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 get --realm-users--id-credentials
{{baseUrl}}/:realm/users/:id/credentials
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/credentials");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/credentials")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/credentials"

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}}/:realm/users/:id/credentials"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/credentials");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/credentials"

	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/:realm/users/:id/credentials HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/credentials")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/credentials"))
    .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}}/:realm/users/:id/credentials")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/credentials")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:realm/users/:id/credentials');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/:id/credentials'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/credentials';
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}}/:realm/users/:id/credentials',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/credentials")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/credentials',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/:id/credentials'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/credentials');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/:id/credentials'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/credentials';
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}}/:realm/users/:id/credentials"]
                                                       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}}/:realm/users/:id/credentials" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/credentials",
  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}}/:realm/users/:id/credentials');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/credentials');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/credentials');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/credentials' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/credentials' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/credentials")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/credentials"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/credentials"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/credentials")

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/:realm/users/:id/credentials') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/credentials";

    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}}/:realm/users/:id/credentials
http GET {{baseUrl}}/:realm/users/:id/credentials
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/credentials
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/credentials")! 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 get --realm-users--id-groups-count
{{baseUrl}}/:realm/users/:id/groups/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/groups/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/groups/count")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/groups/count"

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}}/:realm/users/:id/groups/count"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/groups/count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/groups/count"

	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/:realm/users/:id/groups/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/groups/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/groups/count"))
    .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}}/:realm/users/:id/groups/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/groups/count")
  .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}}/:realm/users/:id/groups/count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:realm/users/:id/groups/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/groups/count';
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}}/:realm/users/:id/groups/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/groups/count")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/groups/count',
  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}}/:realm/users/:id/groups/count'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/groups/count');

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}}/:realm/users/:id/groups/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/groups/count';
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}}/:realm/users/:id/groups/count"]
                                                       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}}/:realm/users/:id/groups/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/groups/count",
  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}}/:realm/users/:id/groups/count');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/groups/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/groups/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/groups/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/groups/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/groups/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/groups/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/groups/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/groups/count")

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/:realm/users/:id/groups/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/groups/count";

    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}}/:realm/users/:id/groups/count
http GET {{baseUrl}}/:realm/users/:id/groups/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/groups/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/groups/count")! 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 get --realm-users--id-groups
{{baseUrl}}/:realm/users/:id/groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:realm/users/:id/groups")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/groups"

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}}/:realm/users/:id/groups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/groups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/groups"

	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/:realm/users/:id/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:realm/users/:id/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/groups"))
    .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}}/:realm/users/:id/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:realm/users/:id/groups")
  .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}}/:realm/users/:id/groups');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/:realm/users/:id/groups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/groups';
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}}/:realm/users/:id/groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/groups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/groups',
  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}}/:realm/users/:id/groups'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:realm/users/:id/groups');

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}}/:realm/users/:id/groups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/groups';
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}}/:realm/users/:id/groups"]
                                                       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}}/:realm/users/:id/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/groups",
  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}}/:realm/users/:id/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:realm/users/:id/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/groups")

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/:realm/users/:id/groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/groups";

    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}}/:realm/users/:id/groups
http GET {{baseUrl}}/:realm/users/:id/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/groups")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT put --realm-users--id-groups--groupId
{{baseUrl}}/:realm/users/:id/groups/:groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:realm/users/:id/groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:realm/users/:id/groups/:groupId")
require "http/client"

url = "{{baseUrl}}/:realm/users/:id/groups/:groupId"

response = HTTP::Client.put url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:realm/users/:id/groups/:groupId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:realm/users/:id/groups/:groupId");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:realm/users/:id/groups/:groupId"

	req, _ := http.NewRequest("PUT", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:realm/users/:id/groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:realm/users/:id/groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:realm/users/:id/groups/:groupId"))
    .method("PUT", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/groups/:groupId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:realm/users/:id/groups/:groupId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:realm/users/:id/groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:realm/users/:id/groups/:groupId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:realm/users/:id/groups/:groupId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:realm/users/:id/groups/:groupId")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:realm/users/:id/groups/:groupId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/groups/:groupId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:realm/users/:id/groups/:groupId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:realm/users/:id/groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:realm/users/:id/groups/:groupId';
const options = {method: 'PUT'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:realm/users/:id/groups/:groupId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:realm/users/:id/groups/:groupId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:realm/users/:id/groups/:groupId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:realm/users/:id/groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/:realm/users/:id/groups/:groupId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:realm/users/:id/groups/:groupId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:realm/users/:id/groups/:groupId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:realm/users/:id/groups/:groupId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/:realm/users/:id/groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:realm/users/:id/groups/:groupId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:realm/users/:id/groups/:groupId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:realm/users/:id/groups/:groupId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.put('/baseUrl/:realm/users/:id/groups/:groupId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:realm/users/:id/groups/:groupId";

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/:realm/users/:id/groups/:groupId
http PUT {{baseUrl}}/:realm/users/:id/groups/:groupId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/:realm/users/:id/groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:realm/users/:id/groups/:groupId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()